mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
Add more tolerance to UnitTestParametricCoordinates
I noticed a failure in a dashboard run of UnitTestParametricCoordinates. This test uses randomly generated numbers to test the behavior of some cell shapes, and there was an instance that occured with seed 1447261681 that caused one of the comparisons to be just slightly larger than the default tolerance but still within reasonable value. I just increased the tolerance of that particular comparison. Hopefully this will prevent all future failures.
This commit is contained in:
parent
88a605549e
commit
7b05604a66
@ -85,7 +85,7 @@ static void CompareCoordinates(const PointWCoordsType &pointWCoords,
|
||||
shape,
|
||||
workletProxy);
|
||||
VTKM_TEST_ASSERT(!errorMessage.IsErrorRaised(), messageBuffer);
|
||||
VTKM_TEST_ASSERT(test_equal(computedWCoords, trueWCoords),
|
||||
VTKM_TEST_ASSERT(test_equal(computedWCoords, trueWCoords, 0.01),
|
||||
"Computed wrong world coords from parametric coords.");
|
||||
|
||||
Vector3 computedPCoords
|
||||
|
Loading…
Reference in New Issue
Block a user