Commit 4deccf50 authored by Davis King's avatar Davis King

Added some tests for the new min/max functions.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402878
parent af25d30a
......@@ -1033,6 +1033,14 @@ namespace
DLIB_CASSERT(m3(0) == 1 && m3(1) == 5 ,"");
}
{
matrix<double> m(4,1);
m = 3, 1, 5, 2;
DLIB_CASSERT(index_of_min(m) == 1, "");
DLIB_CASSERT(index_of_max(m) == 2, "");
DLIB_CASSERT(index_of_min(trans(m)) == 1, "");
DLIB_CASSERT(index_of_max(trans(m)) == 2, "");
}
}
......
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