Browse Source

Fixed random tests

Christophe Riccio 14 years ago
parent
commit
621b1a1cd0
1 changed files with 3 additions and 2 deletions
  1. 3 2
      test/gtx/gtx_random.cpp

+ 3 - 2
test/gtx/gtx_random.cpp

@@ -46,8 +46,9 @@ int test_normalizedRand2()
 			ResultDouble += glm::length(glm::normalizedRand2<double>());
 			ResultDouble += glm::length(glm::normalizedRand2<double>());
 		}
 		}
 
 
-		Error += glm::equalEpsilon(ResultFloat, float(Max), 0.0001f);
-		Error += glm::equalEpsilon(ResultDouble, double(Max), 0.0001);
+		Error += glm::equalEpsilon(ResultFloat, float(Max), 0.000001f) ? 0 : 1;
+		Error += glm::equalEpsilon(ResultDouble, double(Max), 0.000001) ? 0 : 1;
+		assert(!Error);
 	}
 	}
 
 
 	return Error;
 	return Error;