summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorzmiao <miao.zhao@mapbox.com>2020-02-28 17:18:05 +0200
committerzmiao <miao.zhao@mapbox.com>2020-03-05 20:53:16 +0200
commitc69d3b46b12655533aaee5740eba25f5bf7b11de (patch)
tree0ad4cbeca0d2bcf59441434cef41399f189ef1d8 /test
parent9fbcb45c89ee3cec2b94253515a23df5986a4c7b (diff)
downloadqtlocation-mapboxgl-c69d3b46b12655533aaee5740eba25f5bf7b11de.tar.gz
[core] Fix within case when point is on polygon boundary
Diffstat (limited to 'test')
-rw-r--r--test/style/property_expression.test.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/style/property_expression.test.cpp b/test/style/property_expression.test.cpp
index 88096bab6b..ae85227bda 100644
--- a/test/style/property_expression.test.cpp
+++ b/test/style/property_expression.test.cpp
@@ -334,5 +334,9 @@ TEST(PropertyExpression, WithinExpression) {
pointFeature = getPointFeature(Point<double>(-15.5126953125, -11.73830237143684));
evaluatedResult = propExpr.evaluate(EvaluationContext(&pointFeature).withCanonicalTileID(&canonicalTileID));
EXPECT_TRUE(evaluatedResult);
+
+ pointFeature = getPointFeature(Point<double>(-5.9765625, -5.659718554577273));
+ evaluatedResult = propExpr.evaluate(EvaluationContext(&pointFeature).withCanonicalTileID(&canonicalTileID));
+ EXPECT_FALSE(evaluatedResult);
}
}