summaryrefslogtreecommitdiff
path: root/test/ruby/test_io.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_io.rb')
-rw-r--r--test/ruby/test_io.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb
index 0f448dbf39..678a74a1d0 100644
--- a/test/ruby/test_io.rb
+++ b/test/ruby/test_io.rb
@@ -102,8 +102,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