Added another test

This commit is contained in:
Davis King 2014-05-22 20:19:02 -04:00
parent a92de57ec5
commit 78aef59d8c
1 changed files with 3 additions and 2 deletions

View File

@ -1304,14 +1304,15 @@ namespace
}
{
matrix<int> m(4,1), mm;
matrix<int> m(4,1), mm, mmm;
mm = (m = 1,2,3,4);
mmm = mm = (m = 1,2,3,4);
DLIB_TEST(m(0) == 1);
DLIB_TEST(m(1) == 2);
DLIB_TEST(m(2) == 3);
DLIB_TEST(m(3) == 4);
DLIB_TEST(mm == m);
DLIB_TEST(mmm == m);
DLIB_TEST(mm(0) == 1);
DLIB_TEST(mm(1) == 2);
DLIB_TEST(mm(2) == 3);