summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2025-02-21 19:39:47 +0900
committergit <[email protected]>2025-02-21 12:06:19 +0000
commitfa6b9f75efa8411829aa987b81b9c5ca0e081462 ()
tree64f15e69c48cd34566c923b24cf589b2a9edf986
parenta1bdc364439744b72f5b7a0414ed9395a5f689dc (diff)
[ruby/stringio] Suppress a warning for the chilled string
https://.com/ruby/stringio/commit/4a35291ed3
-rw-r--r--test/stringio/test_stringio.rb4
1 files changed, 2 insertions, 2 deletions
@@ -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)
s = StringIO.new(b)
s.getc