diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-03-19 06:23:36 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-03-19 06:23:36 +0000 |
commit | afa1505ca89bd350558f1f42b96f1eee781ef019 (patch) | |
tree | ae5d93ab7f4626db0c7dfc6d395e60d4dee6028c /test/ripper/test_parser_events.rb | |
parent | fa66569afa0614ab27d941a68fb99e7adc1d2d48 (diff) | |
download | ruby-afa1505ca89bd350558f1f42b96f1eee781ef019.tar.gz |
parse.y: removed redundant number_arg parser event
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ripper/test_parser_events.rb')
-rw-r--r-- | test/ripper/test_parser_events.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/test/ripper/test_parser_events.rb b/test/ripper/test_parser_events.rb index fd01427af5..be46ad917d 100644 --- a/test/ripper/test_parser_events.rb +++ b/test/ripper/test_parser_events.rb @@ -58,7 +58,7 @@ class TestRipper::ParserEvents < Test::Unit::TestCase assert_equal '[assign(var_field(a),ref(a))]', parse('a=a') assert_equal '[ref(nil)]', parse('nil') assert_equal '[ref(true)]', parse('true') - assert_include parse('proc{@1}'), '[ref(number_arg(@1))]' + assert_include parse('proc{@1}'), '[ref(@1)]' end def test_vcall @@ -813,12 +813,6 @@ class TestRipper::ParserEvents < Test::Unit::TestCase assert_equal true, thru_next end - def test_number_arg - thru_number_arg = false - parse('proc {@1}', :on_number_arg) {thru_number_arg = true} - assert_equal true, thru_number_arg - end - def test_opassign thru_opassign = false tree = parse('a += b', :on_opassign) {thru_opassign = true} |