Imported Upstream version 1.72.0
[platform/upstream/boost.git] / libs / geometry / test / strategies / distance_cross_track.cpp
index 5989d90..3ec098c 100644 (file)
@@ -29,8 +29,9 @@ struct error{
 void check_result(double const& result, double const& expected,
                   double const& reference, error const& reference_error)
 {
-    BOOST_GEOMETRY_CHECK_CLOSE(result, expected, 0.0000001,
-        std::setprecision(20) << "result {" << result << "} different than expected {" << expected << "}.");
+    BOOST_GEOMETRY_CHECK_CLOSE(result, expected, 0.1,
+    std::setprecision(20) << "result {" << result
+                          << "} different than expected {" << expected << "}.");
 
     double reference_error_value = result > 2000 ? reference_error.long_distance
                                  : result > 100  ? reference_error.short_distance
@@ -38,7 +39,9 @@ void check_result(double const& result, double const& expected,
                                  : reference_error.very_very_short_distance;
 
     BOOST_GEOMETRY_CHECK_CLOSE(result, reference, reference_error_value,
-        std::setprecision(20) << "result {" << result << "} different than reference {" << reference << "}.");
+        std::setprecision(20) << "result {" << result
+                              << "} different than reference {"
+                              << reference << "}.");
 }
 
 template <typename Point>