Commit bb60abb1 authored by Robert Maynard's avatar Robert Maynard Committed by Kitware Robot
Browse files

Merge topic 'correct_bug_in_TestAtomicArrayWorklet'

6ac50adc

 Correct an off by 1 error in UnitTestWorkletMapFieldWholeArray.
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !390
parents 42836b51 6ac50adc
......@@ -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