Skip to content

Commit

Permalink
test: Fix broken equality tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kateinoigakukun committed Mar 27, 2024
1 parent 2835a67 commit c77a370
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ def test_eql?
assert_equal true, JS.eval("return 42;").eql?(42)
assert_equal false, JS.eval("return 42;") != 42
# Compare with non JS::Object like object
assert_equal false, JS.eval("return 42;") != Object.new
assert_equal false, JS.eval("return 42;") == Object.new
assert_equal true, JS.eval("return 42;") != Object.new
end

def assert_object_strictly_eql?(result, a, b)
Expand Down

0 comments on commit c77a370

Please sign in to comment.