summaryrefslogtreecommitdiff
path: root/test/ripper/test_parser_events.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-10-19 03:05:03 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-10-22 02:35:43 +0900
commit62d43828770211470bcacb9e943876f981b5a1b4 (patch)
tree97c1cdebd90cff8bf28320d5ad053b80cc53df53 /test/ripper/test_parser_events.rb
parent35f90bf1b9b06f93e919af3c4095b7aff903d799 (diff)
Arguments forwarding [Feature #16253]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/2575
Diffstat (limited to 'test/ripper/test_parser_events.rb')
-rw-r--r--test/ripper/test_parser_events.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ripper/test_parser_events.rb b/test/ripper/test_parser_events.rb
index 4cb56f66f0..1be2833a4b 100644
--- a/test/ripper/test_parser_events.rb
+++ b/test/ripper/test_parser_events.rb
@@ -131,6 +131,12 @@ class TestRipper::ParserEvents < Test::Unit::TestCase
assert_equal true, thru_args_new
end
+ def test_args_forward
+ thru_args_forward = false
+ parse('def m(...) n(...) end', :on_args_forward) {thru_args_forward = true}
+ assert_equal true, thru_args_forward
+ end
+
def test_arg_paren
# FIXME
end