Browse Source

Test: Enhance Box3.expandByObject() unit test.

Mugen87 5 years ago
parent
commit
443edd059a
1 changed files with 3 additions and 0 deletions
  1. 3 0
      test/unit/src/math/Box3.tests.js

+ 3 - 0
test/unit/src/math/Box3.tests.js

@@ -347,6 +347,9 @@ export default QUnit.module( 'Maths', () => {
 			assert.ok( a.min.equals( new Vector3( - 0.25, - 0.25, - 0.25 ) ), "Smaller box: correct new minimum" );
 			assert.ok( a.max.equals( new Vector3( 1, 1, 1 ) ), "Smaller box: correct new maximum" );
 
+			//
+			assert.ok( new Box3().expandByObject( new Mesh() ).isEmpty() === true, "The AABB of a mesh with inital geometry is empty." );
+
 		} );
 
 		QUnit.test( "containsPoint", ( assert ) => {