Bug #2035 ยป literal_segfault_assert.patch
bootstraptest/test_literal.rb (kopia robocza) | ||
---|---|---|
assert_equal '2', '"#{1 + 1}"'
|
||
assert_equal '16', '"#{2 ** 4}"'
|
||
assert_equal 'string', 's = "string"; "#{s}"'
|
||
assert_equal 'a a value a', 'a = :a; "#{a} " "#{a} " "value #{a}"'
|
||
# dynamic symbol literal
|
||
assert_equal 'a3c', ':"a#{1+2}c"'
|