summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorJemma Issroff <jemmaissroff@gmail.com>2023-10-16 06:31:32 -0700
committerGitHub <noreply@github.com>2023-10-16 06:31:32 -0700
commit728286d0e83b033fe6e56674dab3fc8bf17cce43 (patch)
treeed1e54bd3c7833260370cb9a36e763d7f9685384 /test/ruby
parent6e88b72d7bdac5d959d525df6e3804f4c1eaf9ce (diff)
[PRISM] Fix more bugs in the compiler (#8658)
* Fixed ConstantPathWriteNode * FIxed FlipFlopNode
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_compile_prism.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/ruby/test_compile_prism.rb b/test/ruby/test_compile_prism.rb
index 763ac044ba..512a89f59e 100644
--- a/test/ruby/test_compile_prism.rb
+++ b/test/ruby/test_compile_prism.rb
@@ -167,7 +167,8 @@ module Prism
end
def test_ConstantPathWriteNode
- # test_prism_eval("Prism::YCT = 1")
+ test_prism_eval("Prism::CPWN = 1")
+ test_prism_eval("::CPWN = 1")
end
def test_GlobalVariableTargetNode
@@ -355,6 +356,11 @@ module Prism
test_prism_eval("false ? 0 : 1")
end
+ def test_FlipFlopNode
+ test_prism_eval("not (1 == 1) .. (2 == 2)")
+ test_prism_eval("not (1 == 1) ... (2 == 2)")
+ end
+
############################################################################
# Calls / arugments #
############################################################################