]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/geometry/test/algorithms/buffer/buffer_linestring_aimes.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / geometry / test / algorithms / buffer / buffer_linestring_aimes.cpp
index 2a1f08b870fad4e30c6d8a50aee971cc7614e5ff..51dec91addfe8bef347504174613470763aa3968 100644 (file)
@@ -468,10 +468,8 @@ void test_aimes()
     bg::strategy::buffer::end_flat end_flat;
     bg::strategy::buffer::end_round end_round(100);
 
-    double const tolerance = 1.0e-10;
-
     // Aimes tested originally with 0.000018 degrees (around 2 m)
-    std::size_t self_ip_count = 0;
+    ut_settings settings(1.0e-10);
 
     int expectation_index = 0;
     for (int width = 18; width <= 36; width += 18, expectation_index += 2)
@@ -487,15 +485,13 @@ void test_aimes()
                 (
                     name.str(), testcases[i], join_miter, end_flat,
                     expectations[i][expectation_index],
-                    aimes_width, aimes_width,
-                    self_ip_count, tolerance
+                    aimes_width, settings
                 );
                 test_one<linestring, polygon>
                 (
                     name.str(), testcases[i], join_round, end_round,
                     expectations[i][expectation_index + 1],
-                    aimes_width, aimes_width,
-                    self_ip_count, tolerance
+                    aimes_width, settings
                 );
             }
             catch(std::exception const& e)
@@ -504,12 +500,6 @@ void test_aimes()
             }
         }
     }
-
-    BOOST_CHECK_MESSAGE
-        (
-            self_ip_count == 0,
-            "There are self-intersections: " << self_ip_count
-        );
 }