Commit aa0230eb authored by Davis King's avatar Davis King

Added some unit tests

parent 46072c8c
......@@ -226,8 +226,10 @@ namespace
DLIB_TEST(floor(det(m3)+0.01) == -444);
DLIB_TEST(floor(det(dm3)+0.01) == -444);
DLIB_TEST(min(m3) == 1);
DLIB_TEST(m3(min_point(m3).y(),min_point(m3).x()) == 1);
DLIB_TEST(min(dm3) == 1);
DLIB_TEST(max(m3) == 52);
DLIB_TEST(m3(max_point(m3).y(),max_point(m3).x()) == 52);
DLIB_TEST(max(dm3) == 52);
DLIB_TEST(sum(m3) == 112);
DLIB_TEST(sum(dm3) == 112);
......
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