Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Philip Chimento <philip.chimento@gmail.com>
  • Loading branch information
ioannad and ptomato authored Jun 19, 2024
1 parent b4d10ec commit d9a2bac
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,12 @@ const ArrayEveryHelper = (ta, values, rab, resizeAfter, resizeTo) => {
// [4, 6] << fixedLengthWithOffset
// [0, 2, 4, 6, ...] << lengthTracking
// [4, 6, ...] << lengthTrackingWithOffset
let values;
let rab;
let resizeAfter;
let resizeTo;
for (let ctor of ctors) {
rab = CreateRabForTest(ctor);
const rab = CreateRabForTest(ctor);
const fixedLength = new ctor(rab, 0, 4);
values = [];
resizeAfter = 2;
resizeTo = 5 * ctor.BYTES_PER_ELEMENT;
const values = [];
const resizeAfter = 2;
const resizeTo = 3 * ctor.BYTES_PER_ELEMENT;
assert(ArrayEveryHelper(fixedLength, values, rab, resizeAfter, resizeTo));
assert.compareArray(values, [
0,
Expand Down

0 comments on commit d9a2bac

Please sign in to comment.