diff options
| author | Jemma Issroff <jemmaissroff@gmail.com> | 2023-11-27 15:55:15 -0500 |
|---|---|---|
| committer | Jemma Issroff <jemmaissroff@gmail.com> | 2023-11-28 14:02:53 -0500 |
| commit | 2760f2377425e2b04cc6c25df179525b43176e50 (patch) | |
| tree | d28ae9332b4d9b1befb9b12c99bc77e0253ff1b1 /test/ruby | |
| parent | cb70994b0e91448f5904c3dda51c7b2f79b1d28e (diff) | |
[PRISM] Compile YieldNode with different arguments
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_compile_prism.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_compile_prism.rb b/test/ruby/test_compile_prism.rb index 2f3c2dc062..d3cb1c646c 100644 --- a/test/ruby/test_compile_prism.rb +++ b/test/ruby/test_compile_prism.rb @@ -841,6 +841,7 @@ module Prism def test_YieldNode assert_prism_eval("def prism_test_yield_node; yield; end") assert_prism_eval("def prism_test_yield_node; yield 1, 2; end") + assert_prism_eval("def prism_test_yield_node; yield **kw if condition; end") # Test case where there's a call directly after the yield call assert_prism_eval("def prism_test_yield_node; yield; 1; end") |
