Explorar o código

Added makeEmpty tests

samfoster %!s(int64=5) %!d(string=hai) anos
pai
achega
c1ff1f1054
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  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 );