summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-03-19 06:23:36 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-03-19 06:23:36 +0000
commitafa1505ca89bd350558f1f42b96f1eee781ef019 (patch)
treeae5d93ab7f4626db0c7dfc6d395e60d4dee6028c /test
parentfa66569afa0614ab27d941a68fb99e7adc1d2d48 (diff)
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')
-rw-r--r--test/ripper/test_parser_events.rb8
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}