Commit e127f5f8 authored by Davis King's avatar Davis King

Made test slightly more robust

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403301
parent 4e05d7f1
......@@ -540,7 +540,7 @@ namespace
objective_delta_stop_strategy(eps),
&rosen, &der_rosen, x, minf);
DLIB_TEST_MSG(dlib::equal(x,opt, 1e-7),opt-x);
DLIB_TEST(val == rosen(x));
DLIB_TEST(std::abs(val - rosen(x)) < 100*std::numeric_limits<double>::epsilon());
dlog << LINFO << "find_min() lbfgs-20: got rosen in " << total_count;
......
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