"...models/git@developer.sourcefind.cn:OpenDAS/vision.git" did not exist on "c8064cdb4fedf5279b3c8b78ada748ccb4a259f5"
Commit 4deccf50 authored by Davis King's avatar Davis King
Browse files

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 ...@@ -1033,6 +1033,14 @@ namespace
DLIB_CASSERT(m3(0) == 1 && m3(1) == 5 ,""); 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