summaryrefslogtreecommitdiff
path: root/test/ruby/test_transcode.rb
diff options
context:
space:
mode:
authorJean Boussier <[email protected]>2024-03-13 12:50:11 +0100
committerJean Boussier <[email protected]>2024-03-14 17:56:15 +0100
commit09d8c99cdcb04fb6c6c8e61c9dea28927a3a0b46 (patch)
tree646ab40dec94c5bd405b485e62f00343cc50db72 /test/ruby/test_transcode.rb
parent4e03d56e21e3df98a828c8efb7011b01db1a8d52 (diff)
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.
Diffstat (limited to 'test/ruby/test_transcode.rb')
-rw-r--r--test/ruby/test_transcode.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_transcode.rb b/test/ruby/test_transcode.rb
index 4b63263aae..ceef19e7ea 100644
--- a/test/ruby/test_transcode.rb
+++ b/test/ruby/test_transcode.rb
@@ -2265,7 +2265,7 @@ class TestTranscode < Test::Unit::TestCase
result = th.map(&:value)
end
end
- expected = "\xa4\xa2".force_encoding(Encoding::EUC_JP)
+ expected = "\xa4\xa2".dup.force_encoding(Encoding::EUC_JP)
assert_equal([expected]*num, result, bug11277)
end;
end