From 728286d0e83b033fe6e56674dab3fc8bf17cce43 Mon Sep 17 00:00:00 2001 From: Jemma Issroff Date: Mon, 16 Oct 2023 06:31:32 -0700 Subject: [PRISM] Fix more bugs in the compiler (#8658) * Fixed ConstantPathWriteNode * FIxed FlipFlopNode --- test/ruby/test_compile_prism.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'test/ruby') 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 # ############################################################################ -- cgit v1.2.3