From 414c78115855296db0a1f8eaa1fd2df25d74fd30 Mon Sep 17 00:00:00 2001 From: Matt Valentine-House Date: Thu, 21 Sep 2023 19:52:24 +0100 Subject: [YARP] Implement MatchWriteNode --- test/ruby/test_compile_prism.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/ruby') diff --git a/test/ruby/test_compile_prism.rb b/test/ruby/test_compile_prism.rb index 89cde9a490..2116218c69 100644 --- a/test/ruby/test_compile_prism.rb +++ b/test/ruby/test_compile_prism.rb @@ -230,6 +230,11 @@ module Prism test_prism_eval("pit = 0; pit += 1") end + def test_MatchWriteNode + test_prism_eval("/(?bar)(?bar>)/ =~ 'barbar'") + test_prism_eval("/(?bar)/ =~ 'barbar'") + end + ############################################################################ # String-likes # ############################################################################ -- cgit v1.2.3