Commit 6ac50adc authored by Robert Maynard's avatar Robert Maynard
Browse files

Correct an off by 1 error in UnitTestWorkletMapFieldWholeArray.

The sum presumption was presuming 1 to 10 inclusive, when we actually have
0 to 9 inclusive.
parent 42836b51
......@@ -157,7 +157,8 @@ struct DoTestAtomicArrayWorklet
std::cout << "Check result." << std::endl;
T result = inOutHandle.GetPortalConstControl().Get(0);
VTKM_TEST_ASSERT(result == ((ARRAY_SIZE+1)*ARRAY_SIZE)/2,
VTKM_TEST_ASSERT(result == (ARRAY_SIZE*(ARRAY_SIZE-1))/2,
"Got wrong summation in atomic array.");
}
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment