Skip to content

Commit

Permalink
refactor(bytes): prepare for noUncheckedIndexedAccess (#4119)
Browse files Browse the repository at this point in the history
refactor(bytes): prepare for noUncheckedIndexedAccess
  • Loading branch information
syhol authored Jan 5, 2024
1 parent 8eb433b commit bd08c2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bytes/equals_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Deno.test("equals() handles randomized testing", () => {
const arr3 = arr1.slice(0);
// the chance of arr1 equaling arr2 is basically 0
// but introduce an inequality at the end just in case
arr2[arr2.length - 1] = arr1[arr1.length - 1] ^ 1;
arr2[arr2.length - 1] = arr1.at(-1)! ^ 1;
// arr3 is arr1 but with an inequality in the very last element
// this is to test the equality check when length isn't a multiple of 4
arr3[arr3.length - 1] ^= 1;
Expand Down

0 comments on commit bd08c2b

Please sign in to comment.