aboutsummaryrefslogtreecommitdiffstats
path: root/test/stringio/test_stringio.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/stringio/test_stringio.rb')
-rw-r--r--test/stringio/test_stringio.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/stringio/test_stringio.rb b/test/stringio/test_stringio.rb
index b508d56310..6d1a6ea8d5 100644
--- a/test/stringio/test_stringio.rb
+++ b/test/stringio/test_stringio.rb
@@ -453,9 +453,9 @@ class TestStringIO < Test::Unit::TestCase
assert_equal(0, t.pos)
assert_equal("\u{30eb 30d3 30fc}\u7d05\u7389bar\n", s)
- assert_raise(RangeError) {t.ungetbyte(-1)}
- assert_raise(RangeError) {t.ungetbyte(256)}
- assert_raise(RangeError) {t.ungetbyte(1<<64)}
+ assert_nothing_raised {t.ungetbyte(-1)}
+ assert_nothing_raised {t.ungetbyte(256)}
+ assert_nothing_raised {t.ungetbyte(1<<64)}
end
def test_ungetc