diff options
| author | Jemma Issroff <jemmaissroff@gmail.com> | 2023-10-23 11:28:04 -0300 |
|---|---|---|
| committer | Jemma Issroff <jemmaissroff@gmail.com> | 2023-10-25 13:02:44 -0300 |
| commit | fb0a30166d4a53c09d9544eba53901f7f736a201 (patch) | |
| tree | dc3bd436dbc4686f137caaece121b52f1d2eb83d /test/ruby | |
| parent | fe0827013b8bfda45419f375e817b2259e2c8b8f (diff) | |
[PRISM] Add tests for ParametersNode
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_compile_prism.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ruby/test_compile_prism.rb b/test/ruby/test_compile_prism.rb index ad5994f2c1..8128a88486 100644 --- a/test/ruby/test_compile_prism.rb +++ b/test/ruby/test_compile_prism.rb @@ -628,6 +628,11 @@ module Prism test_prism_eval("def prism_test_optional_param_node(bar = nil); end") end + def test_ParametersNode + test_prism_eval("def prism_test_parameters_node(bar, baz); end") + test_prism_eval("def prism_test_parameters_node(a, b = 2); end") + end + def test_UndefNode test_prism_eval("def prism_undef_node_1; end; undef prism_undef_node_1") test_prism_eval(<<-HERE |
