Browse Source

Fixed bug in test.

Drew Noakes 12 years ago
parent
commit
791a11ddb9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      test/unit/math/Vector3.js

+ 2 - 2
test/unit/math/Vector3.js

@@ -286,7 +286,7 @@ test( "reflect", function() {
 	ok( b.copy( a ).reflect( normal ).equals( new THREE.Vector3( 1, 1, 0 ) ), "Passed!" );
 	ok( b.copy( a ).reflect( normal ).equals( new THREE.Vector3( 1, 1, 0 ) ), "Passed!" );
 
 
 	a.set( 1, -1, 0 );
 	a.set( 1, -1, 0 );
-	normal.set( 0, -1, 0 )
+	normal.set( 0, -1, 0 );
 	ok( b.copy( a ).reflect(  normal ).equals( new THREE.Vector3( -1, -1, 0 ) ), "Passed!" );
 	ok( b.copy( a ).reflect(  normal ).equals( new THREE.Vector3( -1, -1, 0 ) ), "Passed!" );
 });
 });
 
 
@@ -303,7 +303,7 @@ test( "angleTo", function() {
 	equal( x.angleTo( z ), Math.PI / 2 );
 	equal( x.angleTo( z ), Math.PI / 2 );
 	equal( z.angleTo( x ), Math.PI / 2 );
 	equal( z.angleTo( x ), Math.PI / 2 );
 
 
-	ok( Math.abs( x.angleTo( new THREE.Vector3( 1, 1, 0 ) ) - ( Math.PI / 4 ) < 0.0000001 ) );
+	ok( Math.abs( x.angleTo( new THREE.Vector3( 1, 1, 0 ) ) - ( Math.PI / 4 ) ) < 0.0000001 );
 });
 });
 
 
 test( "lerp/clone", function() {
 test( "lerp/clone", function() {