mirror of
https://github.com/g-truc/glm.git
synced 2024-11-22 17:04:35 +00:00
Fixed random tests
This commit is contained in:
parent
cc48ab3697
commit
621b1a1cd0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user