Skip to content
Snippets Groups Projects
Commit 76a54130 authored by Studer Gabriel's avatar Studer Gabriel
Browse files

make img.base.test_image unit test more permissive

The test_Interpolate unit test has been reported to fail when executed
on different platforms (arm64 in this case).
parent e276434b
No related branches found
No related tags found
No related merge requests found
......@@ -242,7 +242,7 @@ void test_Interpolation()
+( dx )*(one-dy)*( dz )*ih3d.GetReal(Point(1,0,1))
+(one-dx)*( dy )*( dz )*ih3d.GetReal(Point(0,1,1))
+( dx )*( dy )*( dz )*ih3d.GetReal(Point(1,1,1));
BOOST_CHECK(check_close(val3,ih3d.GetIntpolReal(Vec3(dx,dy,dz)),1.0e-8));
BOOST_CHECK(check_close(val3,ih3d.GetIntpolReal(Vec3(dx,dy,dz)),1.0e-6));
ImageHandle ih2d=CreateImage(Extent(Point(0,0),Point(1,1)));
......@@ -255,7 +255,7 @@ void test_Interpolation()
+(one-dx)*( dy )*ih2d.GetReal(Point(0,1))
+( dx )*( dy )*ih2d.GetReal(Point(1,1));
BOOST_CHECK(check_close(val2,ih2d.GetIntpolReal(Vec2(dx,dy)),1.0e-10));
BOOST_CHECK(check_close(val2,ih2d.GetIntpolReal(Vec2(dx,dy)),1.0e-6));
ImageHandle ih1d=CreateImage(Extent(Point(0),Point(1)));
ih3d.SetReal(Point(0,0,0), Real(0.000));
......@@ -263,7 +263,7 @@ void test_Interpolation()
Real val1= (one-dx)*ih1d.GetReal(Point(0,0))
+( dx )*ih1d.GetReal(Point(1,0));
BOOST_CHECK(check_close(val1,ih1d.GetIntpolReal(dx),1.0e-15));
BOOST_CHECK(check_close(val1,ih1d.GetIntpolReal(dx),1.0e-6));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment