summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorzmiao <miao.zhao@mapbox.com>2020-04-29 11:02:02 +0300
committerzmiao <miao.zhao@mapbox.com>2020-04-30 02:31:15 +0300
commit23b6268a041016e30727829b42fe19bed87704a7 (patch)
tree4a2b923acd7a9b944c1d948c77fa6efa2b70ab2a /test
parent70fbc97e589604a9f34b86274cefd2da8cdc570a (diff)
downloadqtlocation-mapboxgl-23b6268a041016e30727829b42fe19bed87704a7.tar.gz
[core] Distance expression: Refine logic
Diffstat (limited to 'test')
-rw-r--r--test/style/property_expression.test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/style/property_expression.test.cpp b/test/style/property_expression.test.cpp
index aecbec18e3..faa59025b0 100644
--- a/test/style/property_expression.test.cpp
+++ b/test/style/property_expression.test.cpp
@@ -800,7 +800,7 @@ TEST(PropertyExpression, DistanceExpression) {
const auto multiPolygonFeature = getFeature("multi_polygon_2.geojson", FeatureType::Polygon, canonicalTileID);
auto evaluatedResult = propExpr.evaluate(
EvaluationContext(&multiPolygonFeature).withCanonicalTileID(&canonicalTileID), invalidResult);
- EXPECT_NEAR(41.632, evaluatedResult, 0.01);
+ EXPECT_NEAR(21.446, evaluatedResult, 0.01);
}
// Evaluation test with LineString/Polygon to Polygon distance with special cases