diff --git a/test/stringio/test_stringio.rb b/test/stringio/test_stringio.rb index 8d236e5..a00e7b8 100644 --- a/test/stringio/test_stringio.rb +++ b/test/stringio/test_stringio.rb @@ -483,6 +483,11 @@ def test_seek f.close unless f.closed? end + def test_seek_frozen_string + f = StringIO.new(-"1234") + assert_equal(0, f.seek(1)) + end + def test_each_byte f = StringIO.new("1234") a = []