Skip to content

Commit 98062b7

Browse files
authored
Remove NaN tests for createVector in p5.Matrix
Removed tests for createVector NaN handling in p5.Matrix.
1 parent 64b0dbd commit 98062b7

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

test/unit/math/p5.Matrix.js

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -296,30 +296,6 @@ suite('p5.Matrix', function () {
296296
});
297297
});
298298

299-
suite('createVector NaN (BC patch)', function () {
300-
test('div with 3D divisor: no NaN', function () {
301-
const v = myp5.createVector(8, 9);
302-
const w = myp5.createVector(1, 2, 3);
303-
v.div(w);
304-
const arr = v.array();
305-
expect(arr.some(Number.isNaN)).toBe(false);
306-
expect(arr).toEqual([8, 4.5, 0]);
307-
});
308-
309-
test('div by vector missing z: no NaN (unchanged/div-by-zero safe)', function () {
310-
const v1 = myp5.createVector(8, 9);
311-
const w1 = myp5.createVector(1, 2, 3);
312-
w1.div(v1);
313-
expect(w1.array().some(Number.isNaN)).toBe(false);
314-
});
315-
316-
test('0-arg vector ops: no NaN', function () {
317-
const z = myp5.createVector();
318-
z.add(1);
319-
expect(z.array().some(Number.isNaN)).toBe(false);
320-
});
321-
});
322-
323299
suite('p5.Matrix3x3', function () {
324300
test('apply copy() to 3x3Matrix', function () {
325301
const m = new p5.Matrix([1, 2, 3, 4, 5, 6, 7, 8, 9]);

0 commit comments

Comments
 (0)