We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6884a17 commit 0034ba0Copy full SHA for 0034ba0
packages/npm-packages/ruby-wasm-wasi/test/unit/test_object.rb
@@ -164,10 +164,9 @@ def test_method_missing_with_block
164
result =
165
obj.takeBlock do |a, b, c|
166
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
+ assert_equal 1, a.to_i
+ assert_equal 2, b.to_i
+ assert_equal 3, c.to_i
171
end
172
assert_true block_called
173
0 commit comments