Fixed random tests

This commit is contained in:
Christophe Riccio 2011-09-18 07:23:14 +01:00
parent cc48ab3697
commit 621b1a1cd0

View File

@ -46,8 +46,9 @@ int test_normalizedRand2()
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;