summaryrefslogtreecommitdiff
path: root/test/stringio
diff options
context:
space:
mode:
authorglass <glass@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-27 12:21:17 +0000
committerglass <glass@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-27 12:21:17 +0000
commit89182621d9949b24e67d48b751a1997e9eeb06ec (patch)
treec77c553147f424cb4adcfafdca84f7486f7e15d4 /test/stringio
parent22691e7f6b88a58f9d874b07ce09e2f82bfd112f (diff)
* ext/stringio/stringio.c (strio_getline): fix not to raise TypeError
when limit is nil. [Bug #7232] [ruby-core:48531] * test/stringio/test_stringio.rb: a test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/stringio')
-rw-r--r--test/stringio/test_stringio.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/stringio/test_stringio.rb b/test/stringio/test_stringio.rb
index 0ea3e4f..0eceeba 100644
--- a/test/stringio/test_stringio.rb
+++ b/test/stringio/test_stringio.rb
@@ -52,7 +52,7 @@ class TestStringIO < Test::Unit::TestCase
assert_equal("abc\n\ndef\n", StringIO.new("abc\n\ndef\n").gets(nil))
assert_equal("abc\n\n", StringIO.new("abc\n\ndef\n").gets(""))
assert_raise(TypeError){StringIO.new("").gets(1, 1)}
- assert_raise(TypeError){StringIO.new("").gets(nil, nil)}
+ assert_nothing_raised {StringIO.new("").gets(nil, nil)}
end
def test_readlines