Commit 38bd2512 authored by Davis King's avatar Davis King

Changed code to avoid false test failures in some compilers.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403048
parent 9084b680
...@@ -649,7 +649,7 @@ namespace ...@@ -649,7 +649,7 @@ namespace
DLIB_TEST_MSG(approx_equal(test(temp2), dist(k,temp2,val)), test(temp2) - dist(k,temp2,val)); DLIB_TEST_MSG(approx_equal(test(temp2), dist(k,temp2,val)), test(temp2) - dist(k,temp2,val));
DLIB_TEST(approx_equal(test.squared_norm(), length_squared(val))); DLIB_TEST(approx_equal(test.squared_norm(), length_squared(val)));
DLIB_TEST(approx_equal(test.inner_product(test), length_squared(val))); DLIB_TEST(approx_equal(test.inner_product(test), length_squared(val)));
DLIB_TEST(approx_equal(test(test), 0)); DLIB_TEST_MSG(approx_equal(test(test), 0, 1e-6), test(test));
DLIB_TEST(approx_equal(test.get_distance_function()(test.get_distance_function()), 0)); DLIB_TEST(approx_equal(test.get_distance_function()(test.get_distance_function()), 0));
} }
......
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