summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2026-04-08 14:10:00 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2026-04-08 14:43:51 +0900
commit0cebedd05c2e87330ac8312d0218a800d132c4bf (patch)
tree18a976a648be054386c0383e316f9fe177e49588
parentc8c0af3c85b15a6a8b81bbd30766785c24b7629c (diff)
Fix the order of `assert_equal` arguments
The expected value should be first, second the actual value.
-rw-r--r--test/ruby/test_ast.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_ast.rb b/test/ruby/test_ast.rb
index fe0402cd09..686b642e43 100644
--- a/test/ruby/test_ast.rb
+++ b/test/ruby/test_ast.rb
@@ -1759,7 +1759,7 @@ dummy
def assert_locations(locations, expected)
ary = locations.map {|loc| loc && [loc.first_lineno, loc.first_column, loc.last_lineno, loc.last_column] }
- assert_equal(ary, expected)
+ assert_equal(expected, ary)
end
end
end