Skip to content

Commit

Permalink
Replaced SECTION with INFO in FeatureFaceCurvatureTest
Browse files Browse the repository at this point in the history
* Code outside of sections runs again for each section which was not
necessary for this test case

Signed-off-by: Jared Duffey <[email protected]>
  • Loading branch information
JDuffeyBQ committed Jul 1, 2024
1 parent 8c82753 commit 2b13c86
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Plugins/SimplnxCore/test/FeatureFaceCurvatureTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ TEST_CASE("SimplnxCore::FeatureFaceCurvatureFilter: Test Algorithm", "[FeatureFa
SIMPLNX_RESULT_REQUIRE_VALID(executeResult.result);

// Compare arrays
SECTION("Principal Curvature 1")
{
INFO("Principal Curvature 1");
DataPath path1 = faceAttribMatrixPath.createChildPath("PrincipalCurvature1_D3D");
DataPath path2 = k_PrincipalCurvature1_Path;
const auto* dataArray1 = dataStructure.getDataAs<Float64Array>(path1);
Expand All @@ -92,44 +92,44 @@ TEST_CASE("SimplnxCore::FeatureFaceCurvatureFilter: Test Algorithm", "[FeatureFa
CompareDataArrays(dataStructure, path1, path2);
}

SECTION("Principal Curvature 2")
{
INFO("Principal Curvature 2");
DataPath path1 = faceAttribMatrixPath.createChildPath("PrincipalCurvature2_D3D");
DataPath path2 = k_PrincipalCurvature2_Path;
const auto* dataArray1 = dataStructure.getDataAs<Float64Array>(path1);
const auto* dataArray2 = dataStructure.getDataAs<Float64Array>(path2);
CompareDataArrays(dataStructure, path1, path2);
}

SECTION("Principal Direction 1")
{
INFO("Principal Direction 1");
DataPath path1 = faceAttribMatrixPath.createChildPath("PrincipalDirection1_D3D");
DataPath path2 = k_PrincipalDirection1_Path;
const auto* dataArray1 = dataStructure.getDataAs<Float64Array>(path1);
const auto* dataArray2 = dataStructure.getDataAs<Float64Array>(path2);
CompareDataArrays(dataStructure, path1, path2);
}

SECTION("Principal Direction 2")
{
INFO("Principal Direction 2");
DataPath path1 = faceAttribMatrixPath.createChildPath("PrincipalDirection2_D3D");
DataPath path2 = k_PrincipalDirection2_Path;
const auto* dataArray1 = dataStructure.getDataAs<Float64Array>(path1);
const auto* dataArray2 = dataStructure.getDataAs<Float64Array>(path2);
CompareDataArrays(dataStructure, path1, path2);
}

SECTION("Gaussian Curvatures")
{
INFO("Gaussian Curvatures");
DataPath path1 = faceAttribMatrixPath.createChildPath("GaussianCurvatures");
DataPath path2 = k_GaussianCurvature_Path;
const auto* dataArray1 = dataStructure.getDataAs<Float64Array>(path1);
const auto* dataArray2 = dataStructure.getDataAs<Float64Array>(path2);
CompareDataArrays(dataStructure, path1, path2);
}

SECTION("Mean Curvatures")
{
INFO("Mean Curvatures");
DataPath path1 = faceAttribMatrixPath.createChildPath("MeanCurvatures");
DataPath path2 = k_MeanCurvature_Path;
const auto* dataArray1 = dataStructure.getDataAs<Float64Array>(path1);
Expand Down

0 comments on commit 2b13c86

Please sign in to comment.