Skip to content

Commit

Permalink
Add test for seek with frozen String
Browse files Browse the repository at this point in the history
See #119
  • Loading branch information
headius committed Feb 20, 2025
1 parent 2bbb856 commit ce84d17
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/stringio/test_stringio.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down

0 comments on commit ce84d17

Please sign in to comment.