diff options
author | aycabta <aycabta@gmail.com> | 2021-08-28 02:03:52 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2021-08-29 20:30:33 +0900 |
commit | 7ea46c1ef25ef04f7714c59a0ee5a8eb27d1728a (patch) | |
tree | 45dab65f0c5c4bd5ff00d548e0abcb05bb315519 /test/reline | |
parent | 78f46e65767563f0ec0dc6564901dcd7e99dc044 (diff) | |
download | ruby-7ea46c1ef25ef04f7714c59a0ee5a8eb27d1728a.tar.gz |
[ruby/reline] Fix tests so that the completion journey starts on first C-n/C-p
https://github.com/ruby/reline/commit/52a40f2cd3
Diffstat (limited to 'test/reline')
-rw-r--r-- | test/reline/test_key_actor_vi.rb | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/test/reline/test_key_actor_vi.rb b/test/reline/test_key_actor_vi.rb index 9455c08e2b..722cdc0b75 100644 --- a/test/reline/test_key_actor_vi.rb +++ b/test/reline/test_key_actor_vi.rb @@ -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) |