mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
RUBY_ISEQ_DUMP_DEBUG=to_binary never kept the debug information for String literals
* That is, for plain string literals, not interpolated. * The test below is very similar and uses the same check.
This commit is contained in:
parent
9d8eeccf06
commit
9e813c1fc4
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ class TestRubyLiteral < Test::Unit::TestCase
|
||||||
assert_predicate(str, :frozen?)
|
assert_predicate(str, :frozen?)
|
||||||
assert_raise_with_message(FrozenError, /created at #{Regexp.quote(f)}:#{n}/) {
|
assert_raise_with_message(FrozenError, /created at #{Regexp.quote(f)}:#{n}/) {
|
||||||
str << "x"
|
str << "x"
|
||||||
}
|
} unless ENV['RUBY_ISEQ_DUMP_DEBUG']
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_debug_frozen_string_in_array_literal
|
def test_debug_frozen_string_in_array_literal
|
||||||
|
|
Loading…
Add table
Reference in a new issue