diff options
author | aycabta <aycabta@gmail.com> | 2021-05-31 17:20:34 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2021-06-21 17:58:49 +0900 |
commit | cf186bfe146d187048f3902078682d0ebce4e001 (patch) | |
tree | ad6a72f0484276e0a4b7f6294ab7a6bb6026e4f6 /test/reline/yamatanooroti | |
parent | 8135f489bee3e89e3bdd4f55ee7b71d92f96d99e (diff) |
[ruby/reline] Add yamatanooroti test about set and exchange mark
https://github.com/ruby/reline/commit/2e6fdca5c6
Diffstat (limited to 'test/reline/yamatanooroti')
-rw-r--r-- | test/reline/yamatanooroti/test_rendering.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/reline/yamatanooroti/test_rendering.rb b/test/reline/yamatanooroti/test_rendering.rb index d6c21675e0..612fcc57c5 100644 --- a/test/reline/yamatanooroti/test_rendering.rb +++ b/test/reline/yamatanooroti/test_rendering.rb @@ -786,6 +786,16 @@ begin 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 |