diff options
author | 2022-12-03 23:57:13 -0800 | |
---|---|---|
committer | 2022-12-03 23:57:13 -0800 | |
commit | 35bf039dfb737f92b7df78e178e2c7515f069497 (patch) | |
tree | c278efd2fd722f13b665f505140e0d7776c1f07e | |
parent | de9a2b9fe54cb7fd9696a3fa8edfa9c42829280d (diff) | |
download | bun-35bf039dfb737f92b7df78e178e2c7515f069497.tar.gz bun-35bf039dfb737f92b7df78e178e2c7515f069497.tar.zst bun-35bf039dfb737f92b7df78e178e2c7515f069497.zip |
[test] Add a couple tests for subarray toEqual
Diffstat (limited to '')
-rw-r--r-- | test/bun.js/test-test.test.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/bun.js/test-test.test.ts b/test/bun.js/test-test.test.ts index 211830c3e..f6cc17172 100644 --- a/test/bun.js/test-test.test.ts +++ b/test/bun.js/test-test.test.ts @@ -918,6 +918,9 @@ test("testing Bun.deepEquals() using isEqual()", () => { const t = new Uint8Array([1, 2, 3, 4, 5]); expect(t).toEqual(t.slice()); + expect(t.subarray(1)).toEqual(t.slice(1)); + expect(t.subarray(1, 9)).toEqual(t.slice().subarray(1, 9)); + var a = { foo: 1, bar: 2, baz: null }; var b = { foo: 1, bar: 2, baz: null }; a.baz = a; |