Skip to content

Commit

Permalink
Fixing the unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Garima3110 committed Feb 27, 2024
1 parent e47c1ce commit f99444a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/unit/webgl/p5.Geometry.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ suite('p5.Geometry', function() {
myp5.createVector(-5, 15, 25)
);
const boundingBox = geom.calculateBoundingBox();
assert.deepEqual(boundingBox.min, [-5, 0, 0]);
assert.deepEqual(boundingBox.max, [10, 20, 30]);
assert.deepEqual(boundingBox.size, [15, 20, 30]);
assert.deepEqual(boundingBox.offset, [2.5, 10, 15]);
assert.deepEqual(boundingBox.min.array(), [-5, 0, 0]);
assert.deepEqual(boundingBox.max.array(), [10, 20, 30]);
assert.deepEqual(boundingBox.size.array(), [15, 20, 30]);
assert.deepEqual(boundingBox.offset.array(), [2.5, 10, 15]);
});


Expand Down

0 comments on commit f99444a

Please sign in to comment.