From 25720eaf6b8d436e7be06529d6160750cacad8fa Mon Sep 17 00:00:00 2001 From: Davis King Date: Wed, 22 Dec 2010 00:26:50 +0000 Subject: [PATCH] fixed minor bug in unit tests --HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404000 --- dlib/test/matrix2.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlib/test/matrix2.cpp b/dlib/test/matrix2.cpp index 2bb1c3d53..d8a8932a0 100644 --- a/dlib/test/matrix2.cpp +++ b/dlib/test/matrix2.cpp @@ -377,9 +377,9 @@ namespace DLIB_TEST_MSG(max(abs(dm7*inv(dm7) - identity_matrix(7))) < 1e-12, max(abs(dm7*inv(dm7) - identity_matrix(7)))); DLIB_TEST(equal(inv(dm7), inv(m7))); - DLIB_TEST(abs(det(dm7) - det(m7) < 1e-14)); - DLIB_TEST(abs(min(dm7) - min(m7) < 1e-14)); - DLIB_TEST(abs(max(dm7) - max(m7) < 1e-14)); + DLIB_TEST(abs(det(dm7) - det(m7)) < 1e-14); + DLIB_TEST(abs(min(dm7) - min(m7)) < 1e-14); + DLIB_TEST(abs(max(dm7) - max(m7)) < 1e-14); DLIB_TEST_MSG(abs(sum(dm7) - sum(m7)) < 1e-14,sum(dm7) - sum(m7)); DLIB_TEST(abs(prod(dm7) -prod(m7)) < 1e-14); DLIB_TEST(equal(diag(dm7) , diag(m7)));