Skip to content

Commit

Permalink
don't pointlessly use assert.deepStrictEqual for numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
Liamolucko committed Aug 10, 2023
1 parent d444d2e commit f2f3863
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/wasm/struct_vecs.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ exports.pass_struct_vec = () => {
const el1 = new wasm.ArrayElement();
const el2 = new wasm.ArrayElement();
const ret = wasm.consume_struct_vec([el1, el2]);
assert.deepStrictEqual(ret.length, 3);
assert.strictEqual(ret.length, 3);

const ret2 = wasm.consume_optional_struct_vec(ret);
assert.deepStrictEqual(ret2.length, 4);
assert.strictEqual(ret2.length, 4);

assert.strictEqual(wasm.consume_optional_struct_vec(undefined), undefined);
};
Expand Down

0 comments on commit f2f3863

Please sign in to comment.