Skip to content

Commit

Permalink
GRIDEDIT-1536 Added checks for success after all mkapi function calls
Browse files Browse the repository at this point in the history
  • Loading branch information
BillSenior committed Nov 25, 2024
1 parent c29a946 commit d14d469
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libs/MeshKernelApi/tests/src/MeshPropertyTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ TEST(MeshPropertyTests, BathymetryTest)

mkapi::Mesh2D meshData{};
mkapi::mkernel_mesh2d_get_dimensions(meshKernelId, meshData);
ASSERT_EQ(mk::ExitCode::Success, errorCode);

std::vector<double> xs(meshData.num_nodes);
std::vector<double> ys(meshData.num_nodes);
Expand All @@ -71,6 +72,7 @@ TEST(MeshPropertyTests, BathymetryTest)
meshData.edge_nodes = edges.data();

mkapi::mkernel_mesh2d_get_node_edge_data(meshKernelId, meshData);
ASSERT_EQ(mk::ExitCode::Success, errorCode);

//--------------------------------

Expand Down

0 comments on commit d14d469

Please sign in to comment.