diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-08 04:07:22 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-08 04:07:22 +0000 |
commit | 85280f4b555a7f69692a5a469402c433a36b5eca (patch) | |
tree | 0c85d735184bacb8500dee121ee3fc2555f95534 /test/ripper/test_scanner_events.rb | |
parent | 4dfd3739055388f0395eee81b3297966498f49d5 (diff) | |
download | ruby-85280f4b555a7f69692a5a469402c433a36b5eca.tar.gz |
parse.y: fail if invalid name
* parse.y (parser_yylex): fail if $, @, @@ are not followed by a valid
name character. [ruby-core:54846] [Bug #8375].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ripper/test_scanner_events.rb')
-rw-r--r-- | test/ripper/test_scanner_events.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ripper/test_scanner_events.rb b/test/ripper/test_scanner_events.rb index 66ae07cc6b..a96edef063 100644 --- a/test/ripper/test_scanner_events.rb +++ b/test/ripper/test_scanner_events.rb @@ -92,7 +92,7 @@ class TestRipper::ScannerEvents < Test::Unit::TestCase def test_location assert_location "" assert_location " " - assert_location "@" + assert_location ":" assert_location "\n" assert_location "\r\n" assert_location "\n\n\n\n\n\r\n\n\n" @@ -842,8 +842,8 @@ class TestRipper::ScannerEvents < Test::Unit::TestCase def test_CHAR assert_equal [], scan('CHAR', "") - assert_equal ["@"], - scan('CHAR', "@") + assert_equal ["?a"], + scan('CHAR', "?a") assert_equal [], scan('CHAR', "@ivar") end |