diff options
| author | Matt Valentine-House <matt@eightbitraptor.com> | 2023-09-21 19:52:24 +0100 |
|---|---|---|
| committer | Matt Valentine-House <matt@eightbitraptor.com> | 2023-09-28 16:51:30 +0100 |
| commit | 414c78115855296db0a1f8eaa1fd2df25d74fd30 (patch) | |
| tree | 1916dc3bcdb4e9b439294f41437e77be98a410df /test/ruby | |
| parent | f4580ce95cb41a48e64564daed96afa8e5a0a51c (diff) | |
[YARP] Implement MatchWriteNode
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_compile_prism.rb | 5 |
1 files changed, 5 insertions, 0 deletions
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("/(?<foo>bar)(?<baz>bar>)/ =~ 'barbar'") + test_prism_eval("/(?<foo>bar)/ =~ 'barbar'") + end + ############################################################################ # String-likes # ############################################################################ |
