You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A student might not be familiar with the JavaScript type system, which bleeds through via the n suffix in the test that get logged to console. Investigate ways to document or clarify that this is a wasm i64.
CODE RUN
let resultSigned = currentInstance.exports.square(1n);
let resultUnsigned = BigInt.asUintN(64, resultSigned);
expect(resultUnsigned).toEqual(1n);
TEST FAILURE
Error: expect(received).toEqual(expected) // deep equality
Expected: 1n
Received: 42n
The text was updated successfully, but these errors were encountered:
A student might not be familiar with the JavaScript type system, which bleeds through via the
n
suffix in the test that get logged to console. Investigate ways to document or clarify that this is a wasmi64
.CODE RUN
TEST FAILURE
The text was updated successfully, but these errors were encountered: