Commit 9acf96c0 authored by Davis King's avatar Davis King

Added a few more matrix tests

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403290
parent 0f1a5f6b
...@@ -514,6 +514,7 @@ namespace ...@@ -514,6 +514,7 @@ namespace
set_all_elements(bt2,3); set_all_elements(bt2,3);
DLIB_TEST(trans(bt1)*bt2 == 18); DLIB_TEST(trans(bt1)*bt2 == 18);
DLIB_TEST(trans(bt1)*bt2 != 19);
} }
{ {
matrix<float,3,1> bt1; matrix<float,3,1> bt1;
...@@ -522,6 +523,7 @@ namespace ...@@ -522,6 +523,7 @@ namespace
set_all_elements(bt2,3); set_all_elements(bt2,3);
DLIB_TEST(trans(bt1)*bt2 == 18); DLIB_TEST(trans(bt1)*bt2 == 18);
DLIB_TEST(trans(bt1)*bt2 != 19);
} }
{ {
matrix<float> bt1(3,1); matrix<float> bt1(3,1);
...@@ -530,6 +532,7 @@ namespace ...@@ -530,6 +532,7 @@ namespace
set_all_elements(bt2,3); set_all_elements(bt2,3);
DLIB_TEST(trans(bt1)*bt2 == 18); DLIB_TEST(trans(bt1)*bt2 == 18);
DLIB_TEST(trans(bt1)*bt2 != 19);
} }
{ {
matrix<float,3,1> bt1; matrix<float,3,1> bt1;
...@@ -538,6 +541,7 @@ namespace ...@@ -538,6 +541,7 @@ namespace
set_all_elements(bt2,3); set_all_elements(bt2,3);
DLIB_TEST(trans(bt1)*bt2 == 18); DLIB_TEST(trans(bt1)*bt2 == 18);
DLIB_TEST(trans(bt1)*bt2 != 19);
} }
......
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