Commit 1a957996 authored by Davis King's avatar Davis King

made test more robust

parent b939beb1
......@@ -35,7 +35,8 @@ namespace
for (unsigned long i = 0; i < edges1.size(); ++i)
{
DLIB_TEST(edges1[i] == edges2[i]);
DLIB_TEST(edges1[i].distance() == edges2[i].distance());
DLIB_TEST_MSG(std::abs(edges1[i].distance() - edges2[i].distance()) < 1e-15,
edges1[i].distance() - edges2[i].distance());
}
}
......
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