Skip to content

Commit 0034ba0

Browse files
Remove to_s workaround in int comparation
1 parent 6884a17 commit 0034ba0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/npm-packages/ruby-wasm-wasi/test/unit/test_object.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,9 @@ def test_method_missing_with_block
164164
result =
165165
obj.takeBlock do |a, b, c|
166166
block_called = true
167-
# TODO: Compare them as integers after introducing `JS::Object#to_i`
168-
assert_equal 1.to_s, a.to_s
169-
assert_equal 2.to_s, b.to_s
170-
assert_equal 3.to_s, c.to_s
167+
assert_equal 1, a.to_i
168+
assert_equal 2, b.to_i
169+
assert_equal 3, c.to_i
171170
end
172171
assert_true block_called
173172
end

0 commit comments

Comments
 (0)