summaryrefslogtreecommitdiff
path: root/test/style
diff options
context:
space:
mode:
authorAsheem Mamoowala <asheem.mamoowala@mapbox.com>2018-05-21 14:59:54 -0700
committerGitHub <noreply@github.com>2018-05-21 14:59:54 -0700
commit78fdf5c7716ee7c79800b51713f30f1772514dc6 (patch)
treed29e247149f9e540da0c10b5d9f7edf61b3193fd /test/style
parentbef2a7ccb6e800d2ca6f2bac5c863b49fbba103d (diff)
downloadqtlocation-mapboxgl-78fdf5c7716ee7c79800b51713f30f1772514dc6.tar.gz
Clamp TileJSON.bounds latitudes to [-90, 90] (#11964)
Fixes #11963.
Diffstat (limited to 'test/style')
-rw-r--r--test/style/conversion/tileset.test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/style/conversion/tileset.test.cpp b/test/style/conversion/tileset.test.cpp
index f10aa0e318..f405fb1361 100644
--- a/test/style/conversion/tileset.test.cpp
+++ b/test/style/conversion/tileset.test.cpp
@@ -66,7 +66,7 @@ TEST(Tileset, BoundsAreClamped) {
Error error;
mbgl::optional<Tileset> converted = convertJSON<Tileset>(R"JSON({
"tiles": ["http://mytiles"],
- "bounds": [-181.0000005,-90,180.00000000000006,90]
+ "bounds": [-181.0000005,-90.000000006,180.00000000000006,91]
})JSON", error);
EXPECT_TRUE((bool) converted);
EXPECT_EQ(converted->bounds, LatLngBounds::hull({90, -180}, {-90, 180}));