mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/reline] Add yamatanooroti test about set and exchange mark
https://github.com/ruby/reline/commit/2e6fdca5c6
This commit is contained in:
parent
8135f489be
commit
cf186bfe14
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue