diff options
author | Benoit Daloze <eregontp@gmail.com> | 2020-08-31 21:24:36 +0200 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2020-09-15 21:32:35 +0200 |
commit | 9b535f3ff7c2f48e34dd44564df7adc723b81276 (patch) | |
tree | ea88978c58cd1cc371e6c51a163edb8e3c64e8c1 /test/ruby/test_rubyoptions.rb | |
parent | fbba6bd4e3dff7a61965208fecae908f10c4edbe (diff) |
Interpolated strings are no longer frozen with frozen-string-literal: true
* Remove freezestring instruction since this was the only usage for it.
* [Feature #17104]
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3488
Diffstat (limited to 'test/ruby/test_rubyoptions.rb')
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index 754918d17c..7101175568 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -1014,11 +1014,11 @@ class TestRubyOptions < Test::Unit::TestCase err = !freeze ? [] : debug ? with_debug_pat : wo_debug_pat [ ['"foo" << "bar"', err], - ['"foo#{123}bar" << "bar"', err], + ['"foo#{123}bar" << "bar"', []], ['+"foo#{123}bar" << "bar"', []], - ['-"foo#{123}bar" << "bar"', freeze && debug ? with_debug_pat : wo_debug_pat], + ['-"foo#{123}bar" << "bar"', wo_debug_pat], ].each do |code, expected| - assert_in_out_err(opt, code, [], expected, [opt, code]) + assert_in_out_err(opt, code, [], expected, "#{opt} #{code}") end end end |