Skip to content

Commit 0cebedd

Browse files
committed
Fix the order of assert_equal arguments
The expected value should be first, second the actual value.
1 parent c8c0af3 commit 0cebedd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/ruby/test_ast.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1759,7 +1759,7 @@ def ast_parse(src, **options)
17591759
def assert_locations(locations, expected)
17601760
ary = locations.map {|loc| loc && [loc.first_lineno, loc.first_column, loc.last_lineno, loc.last_column] }
17611761

1762-
assert_equal(ary, expected)
1762+
assert_equal(expected, ary)
17631763
end
17641764
end
17651765
end

0 commit comments

Comments
 (0)