diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ripper/test_scanner_events.rb | 2 | ||||
-rw-r--r-- | test/ruby/test_parse.rb | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/test/ripper/test_scanner_events.rb b/test/ripper/test_scanner_events.rb index d2f8479a33..ffe2ea1e37 100644 --- a/test/ripper/test_scanner_events.rb +++ b/test/ripper/test_scanner_events.rb @@ -269,7 +269,7 @@ class TestRipper::ScannerEvents < Test::Unit::TestCase scan('embvar', '"#@ivar"') assert_equal ['#'], scan('embvar', '"#@@cvar"') - assert_equal ['#'], + assert_equal [], scan('embvar', '"#@1"') assert_equal [], scan('embvar', '"#lvar"') 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 |