ruby-changes:67326
From: aycabta <ko1@a...>
Date: Sun, 29 Aug 2021 20:31:14 +0900 (JST)
Subject: [ruby-changes:67326] 7ea46c1ef2 (master): [ruby/reline] Fix tests so that the completion journey starts on first C-n/C-p
https://git.ruby-lang.org/ruby.git/commit/?id=7ea46c1ef2 From 7ea46c1ef25ef04f7714c59a0ee5a8eb27d1728a Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Sat, 28 Aug 2021 02:03:52 +0900 Subject: [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 9455c08..722cdc0 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 https://github.com/ruby/ruby/blob/trunk/test/reline/test_key_actor_vi.rb#L987 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 https://github.com/ruby/ruby/blob/trunk/test/reline/test_key_actor_vi.rb#L1007 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 https://github.com/ruby/ruby/blob/trunk/test/reline/test_key_actor_vi.rb#L1033 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 https://github.com/ruby/ruby/blob/trunk/test/reline/test_key_actor_vi.rb#L1053 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 https://github.com/ruby/ruby/blob/trunk/test/reline/test_key_actor_vi.rb#L1076 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 https://github.com/ruby/ruby/blob/trunk/test/reline/test_key_actor_vi.rb#L1096 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) -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/