Skip to content

Commit

Permalink
GRIDEDIT-1531 removed commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
BillSenior committed Nov 11, 2024
1 parent eef2239 commit 1e1cfc1
Showing 1 changed file with 1 addition and 28 deletions.
29 changes: 1 addition & 28 deletions libs/MeshKernelApi/tests/src/Mesh2DTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1213,10 +1213,6 @@ TEST(Mesh2D, InsertEdgeThroughApi)
errorCode = GenerateUnstructuredMesh(meshkernelId);
ASSERT_EQ(meshkernel::ExitCode::Success, errorCode);

// Prepare
// MakeMesh();
// auto const meshkernelId = GetMeshKernelId();

// Execute
int newEdgeIndex;
errorCode = meshkernelapi::mkernel_mesh2d_insert_edge(meshkernelId, 0, 4, newEdgeIndex);
Expand All @@ -1240,9 +1236,6 @@ TEST(Mesh2D, MergeTwoNodesThroughApi)

errorCode = GenerateUnstructuredMesh(meshkernelId);
ASSERT_EQ(meshkernel::ExitCode::Success, errorCode);
// // Prepare
// MakeMesh();
// auto const meshkernelId = GetMeshKernelId();

// Execute
errorCode = meshkernelapi::mkernel_mesh2d_merge_two_nodes(meshkernelId, 0, 4);
Expand All @@ -1265,9 +1258,7 @@ TEST(Mesh2D, MergeNodesThroughApi)

errorCode = GenerateUnstructuredMesh(meshkernelId);
ASSERT_EQ(meshkernel::ExitCode::Success, errorCode);
// // Prepare
// MakeMesh();
// auto const meshkernelId = GetMeshKernelId();

meshkernelapi::GeometryList geometry_list{};
std::vector xCoordinates{-0.5, 2.5, 2.5, -0.5, -0.5};
std::vector yCoordinates{-0.5, -0.5, 2.5, 2.5, -0.5};
Expand Down Expand Up @@ -1300,9 +1291,6 @@ TEST(Mesh2D, MergeNodesWithMergingDistanceThroughApi)
errorCode = GenerateUnstructuredMesh(meshkernelId);
ASSERT_EQ(meshkernel::ExitCode::Success, errorCode);

// // Prepare
// MakeMesh(2, 3, 1.0);
// auto const meshkernelId = GetMeshKernelId();
meshkernelapi::GeometryList geometry_list{};

// Execute
Expand All @@ -1325,9 +1313,6 @@ TEST(Mesh2D, InsertNodeAndEdge_OnMesh2D_ShouldInsertNodeAndEdge)
ASSERT_EQ(meshkernel::ExitCode::Success, errorCode);
errorCode = GenerateUnstructuredMesh(meshkernelId);
ASSERT_EQ(meshkernel::ExitCode::Success, errorCode);
// // Prepare
// MakeMesh();
// auto const meshkernelId = GetMeshKernelId();

// Execute
// Isolated nodes are removed by the administration done in mkernel_mesh2d_get_dimensions.
Expand All @@ -1353,9 +1338,6 @@ TEST(Mesh2D, MoveNode_OnMesh2D_ShouldMoveNode)
ASSERT_EQ(meshkernel::ExitCode::Success, errorCode);
errorCode = GenerateUnstructuredMesh(meshkernelId);
ASSERT_EQ(meshkernel::ExitCode::Success, errorCode);
// // Prepare
// MakeMesh();
// auto const meshkernelId = GetMeshKernelId();

// Execute
errorCode = meshkernelapi::mkernel_mesh2d_move_node(meshkernelId, -0.5, -0.5, 0);
Expand Down Expand Up @@ -1404,9 +1386,6 @@ TEST(Mesh2D, MoveNode_OnMesh2DWithInvalidIndex_ShouldReturnAnErrorCode)
ASSERT_EQ(meshkernel::ExitCode::Success, errorCode);
errorCode = GenerateUnstructuredMesh(meshkernelId);
ASSERT_EQ(meshkernel::ExitCode::Success, errorCode);
// // Prepare
// MakeMesh();
// auto const meshkernelId = GetMeshKernelId();

// Execute
errorCode = meshkernelapi::mkernel_mesh2d_move_node(meshkernelId, -0.5, -0.5, -1);
Expand All @@ -1422,9 +1401,6 @@ TEST(Mesh2D, GetEdge_OnMesh2D_ShouldGetAnEdgeIndex)
ASSERT_EQ(meshkernel::ExitCode::Success, errorCode);
errorCode = GenerateUnstructuredMesh(meshkernelId);
ASSERT_EQ(meshkernel::ExitCode::Success, errorCode);
// // Prepare
// MakeMesh();
// auto const meshkernelId = GetMeshKernelId();

// Execute
int edgeIndex;
Expand All @@ -1442,9 +1418,6 @@ TEST(Mesh2D, GetNode_OnMesh2D_ShouldGetANodeIndex)
ASSERT_EQ(meshkernel::ExitCode::Success, errorCode);
errorCode = GenerateUnstructuredMesh(meshkernelId);
ASSERT_EQ(meshkernel::ExitCode::Success, errorCode);
// // Prepare
// MakeMesh();
// auto const meshkernelId = GetMeshKernelId();

// Execute
int nodeIndex;
Expand Down

0 comments on commit 1e1cfc1

Please sign in to comment.