Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Dec 31, 2023
1 parent e9b5021 commit ddbca01
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/tests/buffer-views-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1124,6 +1124,10 @@ describe('buffer-views-tests', () => {
const {size, align} = getSizeAndAlignmentOfUnsizedArrayElement(d.storages.foo8);
assertEqual(size, (4 + 4) * 4 * 5);
assertEqual(align, 4);
const numElements = 3;
const { views } = makeStructuredView(d.storages.foo8, new ArrayBuffer(d.storages.foo8.size + size * numElements));
assertEqual(views.bar.length, 3);
assertEqual(views.bar[2].length, 5);
});

});
Expand Down

0 comments on commit ddbca01

Please sign in to comment.