From 12762173cfac298d024fe6a9dabc0f1d92f83a81 Mon Sep 17 00:00:00 2001 From: zhouyuan chen <867442167@qq.com> Date: Sat, 14 Oct 2023 22:24:55 -0400 Subject: [PATCH] remove the && operator in the REQUIRE function --- tests/test_2d_operations.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/test_2d_operations.cpp b/tests/test_2d_operations.cpp index 9361743503..0df3a63dde 100644 --- a/tests/test_2d_operations.cpp +++ b/tests/test_2d_operations.cpp @@ -1177,7 +1177,6 @@ TEST_CASE("split_face", "[operations][split][2D]") using namespace operations; SECTION("split_single_triangle") { - // this case also test the on boundary case /* V.row(0) << 0, 0, 0; V.row(1) << 1, 0, 0; V.row(2) << 0.5, 0.866, 0;*/ @@ -1199,7 +1198,10 @@ TEST_CASE("split_face", "[operations][split][2D]") REQUIRE(m.id(ret, PV) == 4); REQUIRE(m.id(m.switch_vertex(ret), PV) == 0); REQUIRE(m.id(m.switch_vertex(m.switch_edge(ret)), PV) == 1); - REQUIRE(p_ret.x() == 1 && p_ret.y() == 0 && p_ret.z() == 0); + REQUIRE(p_ret.x() == 1); + REQUIRE(p_ret.y() == 0); + REQUIRE(p_ret.z() == 0); } - SECTION("not_on_boundary") {} + SECTION("without_boundary") {} + SECTION("with_boundary") {} } \ No newline at end of file