Commit ba29493a authored by Davis King's avatar Davis King

Make test more robust

parent 95bce7a1
...@@ -208,7 +208,7 @@ namespace ...@@ -208,7 +208,7 @@ namespace
result = find_max_global([](double a, double b){ return -complex_holder_table(a,b);}, result = find_max_global([](double a, double b){ return -complex_holder_table(a,b);},
{-10, -10}, {10, 10}, max_function_calls(300), 0); {-10, -10}, {10, 10}, max_function_calls(400), 0);
dlog << LINFO << "complex_holder_table y: "<< result.y; dlog << LINFO << "complex_holder_table y: "<< result.y;
DLIB_TEST_MSG(std::abs(result.y - 21.9210397) < 0.0001, std::abs(result.y - 21.9210397)); DLIB_TEST_MSG(std::abs(result.y - 21.9210397) < 0.0001, std::abs(result.y - 21.9210397));
} }
...@@ -269,7 +269,7 @@ namespace ...@@ -269,7 +269,7 @@ namespace
result = find_min_global([](double a, double b){ return complex_holder_table(a,b);}, result = find_min_global([](double a, double b){ return complex_holder_table(a,b);},
{-10, -10}, {10, 10}, max_function_calls(300), 0); {-10, -10}, {10, 10}, max_function_calls(400), 0);
dlog << LINFO << "complex_holder_table y: "<< result.y; dlog << LINFO << "complex_holder_table y: "<< result.y;
DLIB_TEST_MSG(std::abs(result.y + 21.9210397) < 0.0001, std::abs(result.y + 21.9210397)); DLIB_TEST_MSG(std::abs(result.y + 21.9210397) < 0.0001, std::abs(result.y + 21.9210397));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment