diff --git a/cxx/ip/test/facenorm.cc b/cxx/ip/test/facenorm.cc index 737cdc9b0..1596cbf42 100644 --- a/cxx/ip/test/facenorm.cc +++ b/cxx/ip/test/facenorm.cc @@ -39,7 +39,8 @@ struct T { double eps; - T(): eps(1e-5) {} + //note we are comparing uint8_t values, so a difference of 1 is OK. + T(): eps(1.5) {} ~T() {} }; @@ -53,13 +54,23 @@ void check_dimensions( blitz::Array& t1, blitz::Array& t2) } template -void checkBlitzClose( blitz::Array& t1, blitz::Array& t2, +void checkBlitzClose( blitz::Array& t1, blitz::Array& t2, const double eps ) { check_dimensions( t1, t2); for( int i=0; i