diff options
author | Benoit Daloze <[email protected]> | 2020-08-31 21:24:36 +0200 |
---|---|---|
committer | Benoit Daloze <[email protected]> | 2020-09-15 21:32:35 +0200 |
commit | 9b535f3ff7c2f48e34dd44564df7adc723b81276 (patch) | |
tree | ea88978c58cd1cc371e6c51a163edb8e3c64e8c1 /test/ruby/test_literal.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_literal.rb')
-rw-r--r-- | test/ruby/test_literal.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_literal.rb b/test/ruby/test_literal.rb index 7f4a329c4a..f5dd093078 100644 --- a/test/ruby/test_literal.rb +++ b/test/ruby/test_literal.rb @@ -187,7 +187,7 @@ class TestRubyLiteral < Test::Unit::TestCase if defined?(RubyVM::InstructionSequence.compile_option) and RubyVM::InstructionSequence.compile_option.key?(:debug_frozen_string_literal) def test_debug_frozen_string - src = 'n = 1; _="foo#{n ? "-#{n}" : ""}"'; f = "test.rb"; n = 1 + src = '_="foo-1"'; f = "test.rb"; n = 1 opt = {frozen_string_literal: true, debug_frozen_string_literal: true} str = RubyVM::InstructionSequence.compile(src, f, f, n, **opt).eval assert_equal("foo-1", str) |