Skip to content
Snippets Groups Projects
Commit 8bc40880 authored by Robert Maynard's avatar Robert Maynard
Browse files

Add a test for CellSetExplicit::GetIndices

parent fa81d1de
No related branches found
No related tags found
1 merge request!227Cleanup cellset explicit
......@@ -122,6 +122,18 @@ void TestDataSet_Explicit()
correctConnectivity,
connectivitySize),
"Got incorrect conectivity");
//verify that GetIndices works properly
vtkm::Id expectedPointIds[4] = {2,1,3,4};
vtkm::Vec<vtkm::Id,4> retrievedPointIds;
cellset.GetIndices(1, retrievedPointIds);
for (vtkm::IdComponent i = 0; i < 4; i++)
{
VTKM_TEST_ASSERT(
retrievedPointIds[i] == expectedPointIds[i],
"Incorrect point ID for quad cell");
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment