summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorJemma Issroff <jemmaissroff@gmail.com>2023-10-25 15:00:24 -0300
committerJemma Issroff <jemmaissroff@gmail.com>2023-10-26 11:42:15 -0300
commitb5f61750b94e7f9c16876f6a5e9e97e066ea5d18 (patch)
tree70195c27e4a0702c9fbd3f26f0998f8d7a8e52e2 /test/ruby
parent631ddb34e4479259acbfa42b8d19cc03464da8f3 (diff)
[PRISM] Implemented ConstantPathOperatorWriteNode
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_compile_prism.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_compile_prism.rb b/test/ruby/test_compile_prism.rb
index 8d1ea20399..b33ed5319c 100644
--- a/test/ruby/test_compile_prism.rb
+++ b/test/ruby/test_compile_prism.rb
@@ -160,6 +160,10 @@ module Prism
assert_prism_eval("::CPWN = 1")
end
+ def test_ConstantPathOperatorWriteNode
+ assert_prism_eval("Prism::CPOWN = 0; Prism::CPOWN += 1")
+ end
+
def test_GlobalVariableAndWriteNode
assert_prism_eval("$pit = 0; $pit &&= 1")
end