diff options
author | Nobuyoshi Nakada <[email protected]> | 2025-02-21 19:39:47 +0900 |
---|---|---|
committer | git <[email protected]> | 2025-02-21 12:06:19 +0000 |
commit | fa6b9f75efa8411829aa987b81b9c5ca0e081462 (patch) | |
tree | 64f15e69c48cd34566c923b24cf589b2a9edf986 | |
parent | a1bdc364439744b72f5b7a0414ed9395a5f689dc (diff) |
[ruby/stringio] Suppress a warning for the chilled string
https://github.com/ruby/stringio/commit/4a35291ed3
-rw-r--r-- | test/stringio/test_stringio.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/stringio/test_stringio.rb b/test/stringio/test_stringio.rb index a00e7b8500..ffaa2efa0a 100644 --- a/test/stringio/test_stringio.rb +++ b/test/stringio/test_stringio.rb @@ -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 |