diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_io.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index 073ca20314..9082b76b61 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -61,8 +61,9 @@ class TestIO < Test::Unit::TestCase def test_gets_limit_extra_arg with_pipe {|r, w| r, w = IO.pipe - w << "0123456789" + w << "0123456789\n0123456789" w.close + assert_equal("0123456789\n0", r.gets(nil, 12)) assert_raise(TypeError) { r.gets(3,nil) } } end |