diff options
author | tomoya ishida <tomoyapenguin@gmail.com> | 2023-05-20 10:08:54 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-05-20 01:08:58 +0000 |
commit | 6d9875ccbf78ca354e63f05a4e37ab1e2c14a9ac (patch) | |
tree | 6de220405584218026fa40a3b96b0bdbf03cfc16 /test | |
parent | e8c9f727e8a9f0fe9fb1a6d61a60b8c8b479a87b (diff) |
[ruby/irb] Fix dynamic_prompt test not executed, remove unnecessary
set_input
(https://github.com/ruby/irb/pull/585)
https://github.com/ruby/irb/commit/b5f3efdcf0
Diffstat (limited to 'test')
-rw-r--r-- | test/irb/test_ruby_lex.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/irb/test_ruby_lex.rb b/test/irb/test_ruby_lex.rb index 943cce33b5..6a9a5963ae 100644 --- a/test/irb/test_ruby_lex.rb +++ b/test/irb/test_ruby_lex.rb @@ -41,7 +41,6 @@ module TestIRB 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 @@ -653,7 +652,7 @@ module TestIRB 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 |