From 7820ccd2580a05b197222fa8d8c682b618853750 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Wed, 21 Feb 2024 10:26:35 +0100 Subject: [PATCH] Try to work around different algorithm results with different floating reps --- src/Unittests/unittests_holefiller.cc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/Unittests/unittests_holefiller.cc b/src/Unittests/unittests_holefiller.cc index f5c48087..00a8936e 100644 --- a/src/Unittests/unittests_holefiller.cc +++ b/src/Unittests/unittests_holefiller.cc @@ -54,9 +54,13 @@ TEST_F(OpenMeshHoleFiller_Triangle,Triangle_Hole_Filling) { // Execute the algorithm filler.fill_all_holes(); - - EXPECT_EQ(1507u, mesh_.n_vertices() ) << "Wrong number of vertices after smoothing?"; - EXPECT_EQ(3010u, mesh_.n_faces() ) << "Wrong number of faces after smoothing?"; + if ( std::is_same() ) { + EXPECT_EQ(1504u, mesh_.n_vertices() ) << "Wrong number of vertices after smoothing?"; + EXPECT_EQ(3004u, mesh_.n_faces() ) << "Wrong number of faces after smoothing?"; + } else { + EXPECT_EQ(1507u, mesh_.n_vertices() ) << "Wrong number of vertices after smoothing?"; + EXPECT_EQ(3010u, mesh_.n_faces() ) << "Wrong number of faces after smoothing?"; + } }