Skip to content
Snippets Groups Projects
Commit 9341589f authored by Jean Fechter's avatar Jean Fechter
Browse files

Add test AxisAlignedReflectionFilter composite dataset with null input

parent 7b1a6829
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,7 @@ vtk_module_test_data(
Data/fullhead15.png
Data/hexa.vtk
Data/mb-of-mps.vtm
Data/mb_single_piece_empty_data.vtm
Data/mine_with_dates.vtp
Data/quadraticTetra01.vtu
Data/rectGrid.vtr
......
......@@ -395,6 +395,19 @@ int TestMultiBlockOnlyDataSets(int argc, char* argv[])
return EXIT_SUCCESS;
}
int TestMultiBlockEmptyPiece(int argc, char* argv[])
{
ReadFileMacro("Data/mb_single_piece_empty_data.vtm", vtkXMLMultiBlockDataReader);
vtkSmartPointer<vtkPartitionedDataSetCollection> output =
Reflect(reader->GetOutputPort(), true, true, vtkAxisAlignedReflectionFilter::X_MIN);
AssertMacro(output->GetNumberOfPartitionedDataSets() == 2, output->GetClassName(),
"Incorrect number of partitioned datasets")
return EXIT_SUCCESS;
}
// This function tests all the input types, and each input type will test a different plane mode.
int TestAxisAlignedReflectionFilter(int argc, char* argv[])
{
......@@ -402,5 +415,5 @@ int TestAxisAlignedReflectionFilter(int argc, char* argv[])
TestRectilinearGrid(argc, argv) || TestExplicitStructuredGrid(argc, argv) ||
TestStructuredGrid(argc, argv) || TestPolyData(argc, argv) || TestHyperTreeGrid(argc, argv) ||
TestPartitionedDataSetCollection(argc, argv) || TestMultiBlockMultiPiece(argc, argv) ||
TestMultiBlockOnlyDataSets(argc, argv);
TestMultiBlockOnlyDataSets(argc, argv) || TestMultiBlockEmptyPiece(argc, argv);
}
4aa443c77a1817d8a115465ec00759c3cc1664a3f1973d9ebc938511e827d34604f5f1412b1f12face3c7987c0dd1ffd47552b7a6a5cf8c5bd955421c9af8eb7
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment