summaryrefslogtreecommitdiff
path: root/test/ruby/test_parse.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-11-14 16:37:25 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-11-14 16:37:25 +0900
commit4d615a0c8f4759ce4f6b96b643ef957837bdf20e (patch)
tree8db2bd9558454edd2b0c3d7f58aab987e7ca54a1 /test/ruby/test_parse.rb
parent703e05b0eee3017a63690155e55a97d678f073cb (diff)
`#@1` is no longer an embedded variable
Diffstat (limited to 'test/ruby/test_parse.rb')
-rw-r--r--test/ruby/test_parse.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_parse.rb b/test/ruby/test_parse.rb
index 2622ec529c..cb379ebe18 100644
--- a/test/ruby/test_parse.rb
+++ b/test/ruby/test_parse.rb
@@ -358,6 +358,7 @@ class TestParse < Test::Unit::TestCase
assert_equal("foo 1 bar", "foo #@@foo bar")
"1" =~ /(.)/
assert_equal("foo 1 bar", "foo #$1 bar")
+ assert_equal('foo #@1 bar', eval('"foo #@1 bar"'))
end
def test_dstr_disallowed_variable