Adopt unit tests for arm64 and ppc64el
authorJochen Sprickerhof <git@jochen.sprickerhof.de>
Mon, 13 Dec 2021 21:14:08 +0000 (22:14 +0100)
committerJochen Sprickerhof <jspricke@debian.org>
Sun, 25 Sep 2022 10:41:19 +0000 (11:41 +0100)
Gbp-Pq: Name 0007-Adopt-unit-tests-for-arm64-and-ppc64el.patch

test/common/test_pca.cpp
test/segmentation/test_non_linear.cpp

index 9c3a64e4dea87641631e4b08832b51c4ad4ee909..8143a6b629815d6d4db25b74ccf7fbacdc8ef706 100644 (file)
@@ -53,7 +53,7 @@ TEST(PCA, projection)
   {
     pca.project (point, projected);
     pca.reconstruct (projected, reconstructed);
-    EXPECT_NEAR_VECTORS (reconstructed.getVector3fMap (), point.getVector3fMap (), 2.5e-4);
+    EXPECT_NEAR_VECTORS (reconstructed.getVector3fMap (), point.getVector3fMap (), 5e-4);
   }
 }
 
@@ -87,7 +87,7 @@ TEST(PCA, cloud_projection)
     for(std::size_t i = 0; i < cloud.size(); i++)
       EXPECT_NEAR_VECTORS (cloud[i].getVector3fMap (),
                            cloud_reconstructed[i].getVector3fMap (),
-                           2.5e-4);
+                           5e-4);
   }
   catch (pcl::InitFailedException &/*e*/)
   {
index 141018279ffd10f1dfcbd5b75f4e04b5d9ad978d..823070ff0ac12e132e48d2c059189799cf8776ab 100644 (file)
@@ -73,7 +73,7 @@ TEST (SACSegmentation, Segmentation)
   EXPECT_NEAR (sphere_coefficients->values[2], 1.24558,   1e-2);
   EXPECT_NEAR (sphere_coefficients->values[3], 0.0536238, 1e-2);
 
-  EXPECT_NEAR (static_cast<int> (inliers->indices.size ()), 3516, 15);
+  EXPECT_NEAR (static_cast<int> (inliers->indices.size ()), 3516, 18);
 }
 
 //* ---[ */