summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2024-05-12 15:38:22 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2024-05-12 15:38:22 +0900
commit5695c5df95460ed9949e1c8f8ca89b4a5c5cc4dd (patch)
treeea825c98960456b9f05cebb7a2ea6d3cd04fe14e /test
parenta1fb6cc978ffba6c4a8284a4fcca3efcef684714 (diff)
ripper: Fix opassign when assignment to backref variables
Diffstat (limited to 'test')
-rw-r--r--test/ripper/test_parser_events.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ripper/test_parser_events.rb b/test/ripper/test_parser_events.rb
index 8f393e79ee..dc94da01ee 100644
--- a/test/ripper/test_parser_events.rb
+++ b/test/ripper/test_parser_events.rb
@@ -289,7 +289,7 @@ class TestRipper::ParserEvents < Test::Unit::TestCase
result =
parse('$& += cmd 1, 2', :on_assign_error) {thru_assign_error = true}
assert_equal true, thru_assign_error
- assert_equal '[assign_error(assign(var_field($&),command(cmd,[1,2])))]', result
+ assert_equal '[assign_error(opassign(var_field($&),+=,command(cmd,[1,2])))]', result
end
def test_assign_error_const_qualified