ruby-changes:66529
From: aycabta <ko1@a...>
Date: Mon, 21 Jun 2021 18:44:36 +0900 (JST)
Subject: [ruby-changes:66529] cf186bfe14 (master): [ruby/reline] Add yamatanooroti test about set and exchange mark
https://git.ruby-lang.org/ruby.git/commit/?id=cf186bfe14 From cf186bfe146d187048f3902078682d0ebce4e001 Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Mon, 31 May 2021 17:20:34 +0900 Subject: [ruby/reline] Add yamatanooroti test about set and exchange mark https://github.com/ruby/reline/commit/2e6fdca5c6 --- test/reline/yamatanooroti/test_rendering.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/reline/yamatanooroti/test_rendering.rb b/test/reline/yamatanooroti/test_rendering.rb index d6c2167..612fcc5 100644 --- a/test/reline/yamatanooroti/test_rendering.rb +++ b/test/reline/yamatanooroti/test_rendering.rb @@ -786,6 +786,16 @@ begin https://github.com/ruby/ruby/blob/trunk/test/reline/yamatanooroti/test_rendering.rb#L786 EOC end + def test_em_set_mark_and_em_exchange_mark + start_terminal(10, 50, %W{ruby -I#{@pwd}/lib #{@pwd}/test/reline/yamatanooroti/multiline_repl}, startup_message: 'Multiline REPL.') + write("aaa bbb ccc ddd\M-b\M-b\M-\x20\M-b\C-x\C-xX\C-x\C-xY") + close + assert_screen(<<~'EOC') + Multiline REPL. + prompt> aaa Ybbb Xccc ddd + EOC + end + private def write_inputrc(content) File.open(@inputrc_file, 'w') do |f| f.write content -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/