Browse Source

Added makeEmpty tests

samfoster 5 years ago
parent
commit
c1ff1f1054
1 changed files with 10 additions and 0 deletions
  1. 10 0
      test/unit/src/math/Sphere.tests.js

+ 10 - 0
test/unit/src/math/Sphere.tests.js

@@ -118,6 +118,16 @@ export default QUnit.module( 'Maths', () => {
 
 		} );
 
+		QUnit.test( "makeEmpty", ( assert ) => {
+
+			var a = new Sphere( one3.clone(), 1 );
+
+			a.makeEmpty();
+			assert.ok( a.empty(), "Passed!" );
+			assert.ok( a.center.equals( zero3 ), "Passed!" );
+
+		} );
+
 		QUnit.test( "containsPoint", ( assert ) => {
 
 			var a = new Sphere( one3.clone(), 1 );