Fix incorrect tolerance applied to CollideArcToPolygonApproximation qa test

This commit is contained in:
Roberto Fernandez Bautista 2021-11-14 19:59:50 +00:00
parent d47bd3a04d
commit 3f60765016
1 changed files with 2 additions and 2 deletions

View File

@ -904,9 +904,9 @@ BOOST_AUTO_TEST_CASE( CollideArcToPolygonApproximation )
int actual = 0;
VECTOR2I location;
int tol = SHAPE_ARC::MIN_PRECISION_IU;
int clearanceReduced = clearance - polygonApproximationError;
BOOST_CHECK_EQUAL( zoneFill.Collide( &arc, clearance - tol, &actual, &location ), false );
BOOST_CHECK_EQUAL( zoneFill.Collide( &arc, clearanceReduced, &actual, &location ), false );
BOOST_CHECK_EQUAL( zoneFill.Collide( &arc, clearance * 2, &actual, &location ), true );