Skip to content

Commit

Permalink
Add name calls for swap operations to improve coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-zint committed Oct 13, 2023
1 parent 0d290e0 commit e08008f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/components/test_component_isotropic_remeshing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,7 @@ TEST_CASE("swap_edge_for_valence", "[components][isotropic_remeshing][swap][2D]"
SECTION("single_op")
{
EdgeSwapValence op(mesh, swap_edge, op_settings);
CHECK(op.name() == "tri_mesh_edge_swap_valence");
REQUIRE(op());
swap_edge = op.return_tuple();
CHECK(mesh.id(Simplex::vertex(swap_edge)) == 7);
Expand Down
1 change: 1 addition & 0 deletions tests/test_2d_operations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1116,6 +1116,7 @@ TEST_CASE("swap_edge", "[operations][swap][2D]")

const Tuple edge = m.edge_tuple_between_v1_v2(1, 2, 0);
EdgeSwapBase op(m, edge, settings);
CHECK(op.name() == "tri_mesh_edge_swap_base");
REQUIRE(op());
const Tuple ret = op.return_tuple();
REQUIRE(m.is_connectivity_valid());
Expand Down

0 comments on commit e08008f

Please sign in to comment.