Skip to content

Commit

Permalink
Fix tests so that the completion journey starts on first C-n/C-p
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Aug 27, 2021
1 parent a505294 commit 52a40f2
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions test/reline/test_key_actor_vi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -987,11 +987,6 @@ def test_completion_journey
assert_cursor_max(3)
assert_line('foo')
input_keys("\C-n")
assert_byte_pointer_size('foo')
assert_cursor(3)
assert_cursor_max(3)
assert_line('foo')
input_keys("\C-n")
assert_byte_pointer_size('foo_bar')
assert_cursor(7)
assert_cursor_max(7)
Expand All @@ -1012,11 +1007,6 @@ def test_completion_journey
assert_cursor_max(7)
assert_line('foo_bar')
input_keys("_\C-n")
assert_byte_pointer_size('foo_bar_')
assert_cursor(8)
assert_cursor_max(8)
assert_line('foo_bar_')
input_keys("\C-n")
assert_byte_pointer_size('foo_bar_baz')
assert_cursor(11)
assert_cursor_max(11)
Expand All @@ -1043,11 +1033,6 @@ def test_completion_journey_reverse
assert_cursor_max(3)
assert_line('foo')
input_keys("\C-p")
assert_byte_pointer_size('foo')
assert_cursor(3)
assert_cursor_max(3)
assert_line('foo')
input_keys("\C-p")
assert_byte_pointer_size('foo_bar_baz')
assert_cursor(11)
assert_cursor_max(11)
Expand All @@ -1068,11 +1053,6 @@ def test_completion_journey_reverse
assert_cursor_max(11)
assert_line('foo_bar_baz')
input_keys("\C-h\C-p")
assert_byte_pointer_size('foo_bar_ba')
assert_cursor(10)
assert_cursor_max(10)
assert_line('foo_bar_ba')
input_keys("\C-p")
assert_byte_pointer_size('foo_bar_baz')
assert_cursor(11)
assert_cursor_max(11)
Expand All @@ -1096,11 +1076,6 @@ def test_completion_journey_in_middle_of_line
input_keys('abcde fo ABCDE')
assert_line('abcde fo ABCDE')
input_keys("\C-[" + 'h' * 5 + "i\C-n")
assert_byte_pointer_size('abcde fo')
assert_cursor(8)
assert_cursor_max(14)
assert_line('abcde fo ABCDE')
input_keys("\C-n")
assert_byte_pointer_size('abcde foo_bar')
assert_cursor(13)
assert_cursor_max(19)
Expand All @@ -1121,11 +1096,6 @@ def test_completion_journey_in_middle_of_line
assert_cursor_max(19)
assert_line('abcde foo_bar ABCDE')
input_keys("_\C-n")
assert_byte_pointer_size('abcde foo_bar_')
assert_cursor(14)
assert_cursor_max(20)
assert_line('abcde foo_bar_ ABCDE')
input_keys("\C-n")
assert_byte_pointer_size('abcde foo_bar_baz')
assert_cursor(17)
assert_cursor_max(23)
Expand Down

0 comments on commit 52a40f2

Please sign in to comment.