diff options
| author | Matt Valentine-House <matt@eightbitraptor.com> | 2024-01-30 20:51:30 +0000 |
|---|---|---|
| committer | Matt Valentine-House <matt@eightbitraptor.com> | 2024-01-30 22:22:39 +0000 |
| commit | 8041b7d9677d158850e14fc763038df30f14c16d (patch) | |
| tree | 0353b5e627dc29575a4fa03cd39e5c323547a7d9 /test/ruby | |
| parent | 1142ed2f50359d8cab7903e5cc1f0ec9a2ed3e6e (diff) | |
[PRISM] pm_compile_logical: Fix OrNode in IfNode predicate
Fixes: https://github.com/ruby/prism/issues/2294
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 fc11eb21b7..e4748e3898 100644 --- a/test/ruby/test_compile_prism.rb +++ b/test/ruby/test_compile_prism.rb @@ -1011,6 +1011,7 @@ module Prism assert_prism_eval('if ..1; end') assert_prism_eval('if 1..; end') assert_prism_eval('if 1..2; end') + assert_prism_eval('if true or true; end'); end def test_OrNode |
