summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authortomoya ishida <tomoyapenguin@gmail.com>2024-05-09 01:00:26 +0900
committergit <svn-admin@ruby-lang.org>2024-05-08 16:00:30 +0000
commit26446cccc9e8c4dfb7655ae686106a1ee200f2ec (patch)
tree6d0c63b4094564861d1d16c5ca5016e03554dfb6 /test
parentad9c89fab8c532b4e5d926962c5d9d5ae5b01de4 (diff)
[ruby/reline] Implement bracketed paste insert
(https://github.com/ruby/reline/pull/655) https://github.com/ruby/reline/commit/e92dcbf514
Diffstat (limited to 'test')
-rw-r--r--test/reline/yamatanooroti/test_rendering.rb9
1 files changed, 2 insertions, 7 deletions
diff --git a/test/reline/yamatanooroti/test_rendering.rb b/test/reline/yamatanooroti/test_rendering.rb
index 74798c338f..9e8d7da78f 100644
--- a/test/reline/yamatanooroti/test_rendering.rb
+++ b/test/reline/yamatanooroti/test_rendering.rb
@@ -543,15 +543,10 @@ begin
EOC
end
- def test_enable_bracketed_paste
+ def test_bracketed_paste
omit if Reline.core.io_gate.win?
- write_inputrc <<~LINES
- set enable-bracketed-paste on
- LINES
start_terminal(5, 30, %W{ruby -I#{@pwd}/lib #{@pwd}/test/reline/yamatanooroti/multiline_repl}, startup_message: 'Multiline REPL.')
- write("\e[200~,")
- write("def hoge\n 3\nend")
- write("\e[200~.")
+ write("\e[200~def hoge\r\t3\rend\e[201~")
close
assert_screen(<<~EOC)
Multiline REPL.