Skip to content

Commit

Permalink
Fix dynamic_prompt test not executed, remove unnecessary set_input (#585
Browse files Browse the repository at this point in the history
)
  • Loading branch information
tompng authored May 20, 2023
1 parent 172453c commit b5f3efd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/irb/test_ruby_lex.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ def calculate_indenting(lines, add_new_line)
ruby_lex = RubyLex.new(context)
mock_io = MockIO_AutoIndent.new(lines, last_line_index, byte_pointer, add_new_line)

ruby_lex.set_input { @io.gets }
ruby_lex.configure_io(mock_io)
mock_io.calculated_indent
end
Expand Down Expand Up @@ -653,7 +652,7 @@ def assert_dynamic_prompt(lines, expected_prompt_list)
ruby_lex.set_prompt do |ltype, indent, continue, line_no|
'%03d:%01d:%1s:%s ' % [line_no, indent, ltype, continue ? '*' : '>']
end
ruby_lex.set_input { @io.gets }
ruby_lex.configure_io(io)
end

def test_dyanmic_prompt
Expand Down

0 comments on commit b5f3efd

Please sign in to comment.