summaryrefslogtreecommitdiff
path: root/test/reline
diff options
context:
space:
mode:
authortomoya ishida <tomoyapenguin@gmail.com>2023-02-27 17:43:51 +0900
committergit <svn-admin@ruby-lang.org>2023-02-27 08:44:02 +0000
commit92ed8e6f3f561ea25c411f94d6469497e9cb9204 (patch)
tree977f5ffd50143bbaf03abb146266c828e6b9c648 /test/reline
parent494c274b82d267ace9878202a65fb100cb5f62f7 (diff)
downloadruby-92ed8e6f3f561ea25c411f94d6469497e9cb9204.tar.gz
[ruby/reline] Fix the cause of test_yamatanooroti randomly failing
(https://github.com/ruby/reline/pull/474) * Add repeated input-delete test that fails on HEAD * Use raw mode while readmultiline
Diffstat (limited to 'test/reline')
-rw-r--r--test/reline/yamatanooroti/test_rendering.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/reline/yamatanooroti/test_rendering.rb b/test/reline/yamatanooroti/test_rendering.rb
index 1e46701664..90cd3b52c9 100644
--- a/test/reline/yamatanooroti/test_rendering.rb
+++ b/test/reline/yamatanooroti/test_rendering.rb
@@ -1425,6 +1425,16 @@ begin
EOC
end
+ def test_repeated_input_delete
+ start_terminal(5, 30, %W{ruby -I#{@pwd}/lib #{@pwd}/test/reline/yamatanooroti/multiline_repl}, startup_message: 'Multiline REPL.')
+ write("a\C-h" * 4000)
+ close
+ assert_screen(<<~'EOC')
+ Multiline REPL.
+ prompt>
+ EOC
+ end
+
def write_inputrc(content)
File.open(@inputrc_file, 'w') do |f|
f.write content