diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-11-14 16:37:25 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-11-14 16:37:25 +0900 |
commit | 4d615a0c8f4759ce4f6b96b643ef957837bdf20e (patch) | |
tree | 8db2bd9558454edd2b0c3d7f58aab987e7ca54a1 /test/ruby/test_parse.rb | |
parent | 703e05b0eee3017a63690155e55a97d678f073cb (diff) |
`#@1` is no longer an embedded variable
Diffstat (limited to 'test/ruby/test_parse.rb')
-rw-r--r-- | test/ruby/test_parse.rb | 1 |
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 |