mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/reline] Fix tests so that the completion journey starts on first C-n/C-p
52a40f2cd3
This commit is contained in:
parent
78f46e6576
commit
7ea46c1ef2
1 changed files with 0 additions and 30 deletions
|
@ -987,11 +987,6 @@ class Reline::KeyActor::ViInsert::Test < Reline::TestCase
|
|||
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)
|
||||
|
@ -1012,11 +1007,6 @@ class Reline::KeyActor::ViInsert::Test < Reline::TestCase
|
|||
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)
|
||||
|
@ -1043,11 +1033,6 @@ class Reline::KeyActor::ViInsert::Test < Reline::TestCase
|
|||
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)
|
||||
|
@ -1068,11 +1053,6 @@ class Reline::KeyActor::ViInsert::Test < Reline::TestCase
|
|||
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)
|
||||
|
@ -1096,11 +1076,6 @@ class Reline::KeyActor::ViInsert::Test < Reline::TestCase
|
|||
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)
|
||||
|
@ -1121,11 +1096,6 @@ class Reline::KeyActor::ViInsert::Test < Reline::TestCase
|
|||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue