From 103b464923b892e80ccb263151141ff7e836f25e Mon Sep 17 00:00:00 2001 From: Davis King Date: Mon, 22 Apr 2013 03:47:10 -0400 Subject: [PATCH] Relaxed tests slightly to avoid false alarms. --- dlib/test/geometry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlib/test/geometry.cpp b/dlib/test/geometry.cpp index fa7bbed5d..50702181c 100644 --- a/dlib/test/geometry.cpp +++ b/dlib/test/geometry.cpp @@ -682,8 +682,8 @@ namespace dlib::vector p = randm(2,1,rnd)*1000; from_points.push_back(p); to_points.push_back(tran(p) + (randm(2,1,rnd)-0.5)*error_rate); - DLIB_TEST(length(traninv(tran(p))-p) <= 1e-6); - DLIB_TEST(length(tran(traninv(p))-p) <= 1e-6); + DLIB_TEST(length(traninv(tran(p))-p) <= 1e-5); + DLIB_TEST(length(tran(traninv(p))-p) <= 1e-5); }