From 7ea46c1ef25ef04f7714c59a0ee5a8eb27d1728a Mon Sep 17 00:00:00 2001 From: aycabta Date: Sat, 28 Aug 2021 02:03:52 +0900 Subject: [PATCH] [ruby/reline] Fix tests so that the completion journey starts on first C-n/C-p https://github.com/ruby/reline/commit/52a40f2cd3 --- test/reline/test_key_actor_vi.rb | 30 ------------------------------ 1 file changed, 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)