LibJS: Make a TypedArray test actually run on all different types

This commit is contained in:
davidot 2022-10-12 01:34:58 +02:00 committed by Linus Groh
parent 80f23abd0a
commit 66d07a452f
Notes: sideshowbarker 2024-07-17 05:12:28 +09:00

View file

@ -276,7 +276,7 @@ test("TypedArray is abstract", () => {
TYPED_ARRAYS.forEach(T => {
test(`all numeric indices are valid on ${T.name}`, () => {
const newTypedArray = new Float32Array([1, 2, 3, 4, 5, 6, 7, 8, 9, 0]);
const newTypedArray = new T([1, 2, 3, 4, 5, 6, 7, 8, 9, 0]);
expect(newTypedArray).toHaveLength(10);
function PoisonError() {}