Ensure test suite is compatible with --frozen-string-literal

As preparation for https://bugs.ruby-lang.org/issues/20205
making sure the test suite is compatible with frozen string
literals is making things easier.
This commit is contained in:
Jean Boussier 2024-03-13 12:50:11 +01:00 committed by Jean Boussier
parent 4e03d56e21
commit 09d8c99cdc
30 changed files with 159 additions and 147 deletions

View file

@ -11,7 +11,7 @@ class TestStringIOInRactor < Test::Unit::TestCase
require "stringio"
$VERBOSE = nil
r = Ractor.new do
io = StringIO.new("")
io = StringIO.new(+"")
io.puts "abc"
io.truncate(0)
io.puts "def"