Skip to content

Commit ab631a6

Browse files
committed
Removing some redundant tests
1 parent 586ce9d commit ab631a6

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

libraries/math/src/aabb/coreHelpers.test.ts

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -190,20 +190,6 @@ describe('AABB BlockVolume operations', () => {
190190
expectVector3({ x: 0.0, y: 0.0, z: 0.0 }, blockVolume.to).toBe(true);
191191
});
192192

193-
it('successfully creates a BlockVolume when AABB extents are less than VECTOR3_ONE within epsilon', () => {
194-
const aabb: AABB = { center: VECTOR3_ZERO, extents: { x: 0.99999, y: 0.99999, z: 0.99999 } };
195-
const blockVolume = AABBUtils.getBlockVolume(aabb);
196-
expectVector3({ x: -1.0, y: -1.0, z: -1.0 }, blockVolume.from).toBe(true);
197-
expectVector3({ x: 1.0, y: 1.0, z: 1.0 }, blockVolume.to).toBe(true);
198-
});
199-
200-
it('successfully creates a BlockVolume when AABB extents are less than VECTOR3_ONE exceeding epsilon', () => {
201-
const aabb: AABB = { center: VECTOR3_ZERO, extents: { x: 0.99998, y: 0.99998, z: 0.99998 } };
202-
const blockVolume = AABBUtils.getBlockVolume(aabb);
203-
expectVector3({ x: -1.0, y: -1.0, z: -1.0 }, blockVolume.from).toBe(true);
204-
expectVector3({ x: 1.0, y: 1.0, z: 1.0 }, blockVolume.to).toBe(true);
205-
});
206-
207193
it('successfully creates a BlockVolume when AABB extents are greater than VECTOR3_ZERO within epsilon', () => {
208194
const aabb: AABB = { center: VECTOR3_ZERO, extents: { x: 0.00001, y: 0.00001, z: 0.00001 } };
209195
const blockVolume = AABBUtils.getBlockVolume(aabb);
@@ -217,18 +203,4 @@ describe('AABB BlockVolume operations', () => {
217203
expectVector3({ x: -1.0, y: -1.0, z: -1.0 }, blockVolume.from).toBe(true);
218204
expectVector3({ x: 1.0, y: 1.0, z: 1.0 }, blockVolume.to).toBe(true);
219205
});
220-
221-
it('successfully creates a BlockVolume when AABB extents are greater than VECTOR3_ONE within epsilon', () => {
222-
const aabb: AABB = { center: VECTOR3_ZERO, extents: { x: 1.00001, y: 1.00001, z: 1.00001 } };
223-
const blockVolume = AABBUtils.getBlockVolume(aabb);
224-
expectVector3({ x: -1.0, y: -1.0, z: -1.0 }, blockVolume.from).toBe(true);
225-
expectVector3({ x: 1.0, y: 1.0, z: 1.0 }, blockVolume.to).toBe(true);
226-
});
227-
228-
it('successfully creates a BlockVolume when AABB extents are greater than VECTOR3_ONE exceeding epsilon', () => {
229-
const aabb: AABB = { center: VECTOR3_ZERO, extents: { x: 1.00002, y: 1.00002, z: 1.00002 } };
230-
const blockVolume = AABBUtils.getBlockVolume(aabb);
231-
expectVector3({ x: -2.0, y: -2.0, z: -2.0 }, blockVolume.from).toBe(true);
232-
expectVector3({ x: 2.0, y: 2.0, z: 2.0 }, blockVolume.to).toBe(true);
233-
});
234206
});

0 commit comments

Comments
 (0)