Fixed random tests

master
Christophe Riccio ago%!(EXTRA string=14 years)
parent cc48ab3697
commit 621b1a1cd0
  1. 5
      test/gtx/gtx_random.cpp

@ -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…
Cancel
Save