Relaxed tests slightly to avoid false alarms.

This commit is contained in:
Davis King 2013-04-22 03:47:10 -04:00
parent 688471ffe7
commit 103b464923
1 changed files with 2 additions and 2 deletions

View File

@ -682,8 +682,8 @@ namespace
dlib::vector<double,2> p = randm(2,1,rnd)*1000; dlib::vector<double,2> p = randm(2,1,rnd)*1000;
from_points.push_back(p); from_points.push_back(p);
to_points.push_back(tran(p) + (randm(2,1,rnd)-0.5)*error_rate); 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(traninv(tran(p))-p) <= 1e-5);
DLIB_TEST(length(tran(traninv(p))-p) <= 1e-6); DLIB_TEST(length(tran(traninv(p))-p) <= 1e-5);
} }