[ruby/stringio] Suppress a warning for the chilled string

https://github.com/ruby/stringio/commit/4a35291ed3
This commit is contained in:
Nobuyoshi Nakada 2025-02-21 19:39:47 +09:00 committed by git
parent a1bdc36443
commit fa6b9f75ef

View File

@ -21,8 +21,8 @@ class TestStringIO < Test::Unit::TestCase
# In this case, we must use eval because we need two strings literals that
# are long enough they cannot be embedded, but also contain the same bytes.
a = eval(("x" * 1024).dump)
b = eval(("x" * 1024).dump)
a = eval("+"+("x" * 1024).dump)
b = eval("+"+("x" * 1024).dump)
s = StringIO.new(b)
s.getc