diff options
| author | Jemma Issroff <jemmaissroff@gmail.com> | 2023-11-20 16:16:22 -0500 |
|---|---|---|
| committer | Jemma Issroff <jemmaissroff@gmail.com> | 2023-11-27 12:51:50 -0500 |
| commit | 6d447fa35f877edae96e4a7f98c9f5e70219314b (patch) | |
| tree | 0ff3f63881efd4be58096fb794ac64047e79ce33 /test/ruby | |
| parent | 150ed44d87e2d5b00f38019a487e05a67a303482 (diff) | |
[PRISM] Don't pop several args related nodes
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_compile_prism.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/ruby/test_compile_prism.rb b/test/ruby/test_compile_prism.rb index aa140085f0..a79db57bb5 100644 --- a/test/ruby/test_compile_prism.rb +++ b/test/ruby/test_compile_prism.rb @@ -804,6 +804,15 @@ module Prism # with arguments and popped assert_prism_eval("eval '1'; 1") + + # With different types of calling arguments + assert_prism_eval(<<-CODE) + def self.prism_test_call_node(**); end + prism_test_call_node(b: 1, **{}) + CODE + assert_prism_eval(<<-CODE) + prism_test_call_node(:b => 1) + CODE end def test_CallAndWriteNode |
