[test][robustness] updated tolerance

This commit is contained in:
Barend Gehrels 2014-08-11 11:55:48 +02:00
parent c72cccb7ed
commit baba553a5e
2 changed files with 1 additions and 3 deletions

View File

@ -170,12 +170,10 @@ void test_all(std::string const& type, int seed, int count, p_q_settings setting
{ {
if (type == "float") if (type == "float")
{ {
settings.tolerance = 1.0e-3;
test_type<float, Clockwise, Closed>(seed, count, settings); test_type<float, Clockwise, Closed>(seed, count, settings);
} }
else if (type == "double") else if (type == "double")
{ {
settings.tolerance = 1.0e-4;
test_type<double, Clockwise, Closed>(seed, count, settings); test_type<double, Clockwise, Closed>(seed, count, settings);
} }
#if defined(HAVE_TTMATH) #if defined(HAVE_TTMATH)

View File

@ -45,7 +45,7 @@ struct p_q_settings
: svg(false) : svg(false)
, also_difference(false) , also_difference(false)
, wkt(false) , wkt(false)
, tolerance(1.0e-6) , tolerance(1.0e-3) // since rescaling to integer the tolerance should be less. Was originally 1.0e-6
{} {}
}; };