ruby-changes:67682
From: aycabta <ko1@a...>
Date: Fri, 10 Sep 2021 09:05:09 +0900 (JST)
Subject: [ruby-changes:67682] c00643c18a (master): [ruby/reline] Add a test for dialog at right edge
https://git.ruby-lang.org/ruby.git/commit/?id=c00643c18a From c00643c18a6c4da2c3c5ff05f8b3987523bc23e2 Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Fri, 10 Sep 2021 06:42:58 +0900 Subject: [ruby/reline] Add a test for dialog at right edge https://github.com/ruby/reline/commit/db642169b9 --- test/reline/yamatanooroti/test_rendering.rb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/test/reline/yamatanooroti/test_rendering.rb b/test/reline/yamatanooroti/test_rendering.rb index 278850a..fdfcaf9 100644 --- a/test/reline/yamatanooroti/test_rendering.rb +++ b/test/reline/yamatanooroti/test_rendering.rb @@ -854,6 +854,25 @@ begin https://github.com/ruby/ruby/blob/trunk/test/reline/yamatanooroti/test_rendering.rb#L854 EOC end + def test_simple_dialog_at_right_edge + start_terminal(20, 40, %W{ruby -I#{@pwd}/lib #{@pwd}/test/reline/yamatanooroti/multiline_repl --dialog simple}, startup_message: 'Multiline REPL.') + write('a') + write('b') + write('c') + write("\C-h") + close + assert_screen(<<~'EOC') + Multiline REPL. + prompt> ab + Ruby is... + A dynamic, open source programming + language with a focus on simplicity + and productivity. It has an elegant + syntax that is natural to read and + easy to write. + EOC + end + def test_simple_dialog_with_scroll_key start_terminal(20, 50, %W{ruby -I#{@pwd}/lib #{@pwd}/test/reline/yamatanooroti/multiline_repl --dialog long,scrollkey}, startup_message: 'Multiline REPL.') write('a') -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/