Commit bc189464 authored by Davis King's avatar Davis King

Added another test

parent 642762c0
...@@ -44,6 +44,25 @@ namespace ...@@ -44,6 +44,25 @@ namespace
img2.nr() == 100 && img2.nc() == 100,""); img2.nr() == 100 && img2.nc() == 100,"");
for (long r = 0; r < img1.nr(); ++r)
{
for (long c = 0; c < img1.nc(); ++c)
{
DLIB_TEST(img1[r][c] == 7);
DLIB_TEST(img2[r][c] == 7);
}
}
img2.clear();
DLIB_TEST(img2.size() == 0);
DLIB_TEST(img2.nr() == 0);
DLIB_TEST(img2.nc() == 0);
assign_image(img2, array_to_matrix(img1));
DLIB_TEST_MSG(img1.nr() == 100 && img1.nc() == 100 &&
img2.nr() == 100 && img2.nc() == 100,"");
for (long r = 0; r < img1.nr(); ++r) for (long r = 0; r < img1.nr(); ++r)
{ {
for (long c = 0; c < img1.nc(); ++c) for (long c = 0; c < img1.nc(); ++c)
......
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