[ruby/reline] Add missing close to test_rendering.rb

(https://github.com/ruby/reline/pull/573)

https://github.com/ruby/reline/commit/7cd817036e
This commit is contained in:
tomoya ishida 2023-07-19 05:31:32 +09:00 committed by git
parent ecbedf9bf1
commit b400307923

View File

@ -245,6 +245,7 @@ begin
sleep 1
write("A")
write("B\eAC") # ESC + A (M-A, specified ed_unassigned in Reline::KeyActor::Emacs)
close
assert_screen(<<~EOC)
Multiline REPL.
prompt> abcABCdef
@ -690,6 +691,7 @@ begin
EOC
write("\C-p" * 4 + "\C-e" + "\C-p" * 4)
write("2")
close
assert_screen(<<~EOC)
prompt> if 12
prompt> if 2
@ -994,6 +996,7 @@ begin
write("\n" * 10)
write("if 1\n sSt\nend")
write("\C-p\C-h\C-e")
close
assert_screen(<<~'EOC')
prompt>
prompt>