summaryrefslogtreecommitdiff
path: root/test/stringio/test_stringio.rb
diff options
context:
space:
mode:
authorJeremy Evans <[email protected]>2025-04-14 18:51:59 -0700
committergit <[email protected]>2025-05-13 03:20:09 +0000
commit18d395e0784401585b5c14300e689de55e208647 ()
tree7a92a717eb9ea461610a4b3df4cb4e3c35315449 /test/stringio/test_stringio.rb
parent9b8c846bdf4ae2f218e0b92d0898d7206d0002c9 (diff)
[ruby/stringio] Do not issue warning when calling set_encoding if string is chilled
StringIO does not warn for unchilled unfrozen string or for frozen string, so it should not warn for chilled string. https://.com/ruby/stringio/commit/4ac33b8c70
-rw-r--r--test/stringio/test_stringio.rb7
1 files changed, 7 insertions, 0 deletions
@@ -1057,6 +1057,13 @@ class TestStringIO < Test::Unit::TestCase
assert_equal("test", io.string)
assert_same(chilled_string, io.string)
end
end
private