Skip to content

Commit

Permalink
Add repeated input-delete test that fails on HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
tompng committed Feb 7, 2023
1 parent afa6833 commit 63ed5d4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/reline/yamatanooroti/test_rendering.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1425,6 +1425,16 @@ def test_bracket_newline_indent
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
Expand Down

0 comments on commit 63ed5d4

Please sign in to comment.