Commit 482abe13 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

adapt the tests after changing the defaults

parent 121b8682
......@@ -92,39 +92,38 @@ int main (int argc, char** argv)
Vtk::Function<GridView> func1{f1};
VTK_ASSERT(func1.numComponents() == 1);
VTK_ASSERT(func1.rangeType() == Vtk::RangeTypes::SCALAR);
VTK_ASSERT(func1.dataType() == Vtk::DataTypes::FLOAT32);
writer.addPointData(func1, "p2");
// test constructible by local-function
Vtk::Function<GridView> func2{f2, "func2"};
VTK_ASSERT(func2.numComponents() == 1);
VTK_ASSERT(func2.rangeType() == Vtk::RangeTypes::UNSPECIFIED);
VTK_ASSERT(func2.dataType() == Vtk::DataTypes::FLOAT32);
VTK_ASSERT(func2.dataType() == Vtk::DataTypes::FLOAT64);
writer.addPointData(func2);
Vtk::Function<GridView> func3{f3, "func3", 3};
VTK_ASSERT(func3.numComponents() == 3);
VTK_ASSERT(func3.rangeType() == Vtk::RangeTypes::UNSPECIFIED);
VTK_ASSERT(func3.dataType() == Vtk::DataTypes::FLOAT32);
VTK_ASSERT(func3.dataType() == Vtk::DataTypes::FLOAT64);
writer.addPointData(func3);
// test constructible with component vector
Vtk::Function<GridView> func4a{f3, "func4a", 1};
VTK_ASSERT(func4a.numComponents() == 1);
VTK_ASSERT(func4a.rangeType() == Vtk::RangeTypes::UNSPECIFIED);
VTK_ASSERT(func4a.dataType() == Vtk::DataTypes::FLOAT32);
VTK_ASSERT(func4a.dataType() == Vtk::DataTypes::FLOAT64);
writer.addPointData(func4a);
Vtk::Function<GridView> func4b{f3, "func4b", {1}}; // == func4a
VTK_ASSERT(func4b.numComponents() == 1);
VTK_ASSERT(func4b.rangeType() == Vtk::RangeTypes::UNSPECIFIED);
VTK_ASSERT(func4b.dataType() == Vtk::DataTypes::FLOAT32);
VTK_ASSERT(func4b.dataType() == Vtk::DataTypes::FLOAT64);
writer.addPointData(func4b);
Vtk::Function<GridView> func4c{f3, "func4c", std::vector{1}};
VTK_ASSERT(func4c.numComponents() == 1);
VTK_ASSERT(func4c.rangeType() == Vtk::RangeTypes::UNSPECIFIED);
VTK_ASSERT(func4c.dataType() == Vtk::DataTypes::FLOAT32);
VTK_ASSERT(func4c.dataType() == Vtk::DataTypes::FLOAT64);
writer.addPointData(func4c);
// Test copy-constructible
......
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