summaryrefslogtreecommitdiff
path: root/test/map
diff options
context:
space:
mode:
authorBruno de Oliveira Abinader <bruno@mapbox.com>2016-03-13 19:04:59 +0200
committerBruno de Oliveira Abinader <bruno@mapbox.com>2016-03-13 21:38:20 +0200
commitfe7e208b4224101f3feeddf9808ecedd3b0f486f (patch)
treed5ef3133217c9cb96c2a917be3e9b3d3e1ba9e38 /test/map
parent8e30a4a0806e970e727c3563b8ed57dbaf9a0fa0 (diff)
downloadqtlocation-mapboxgl-fe7e208b4224101f3feeddf9808ecedd3b0f486f.tar.gz
[core] Implement LatLng::null()
Diffstat (limited to 'test/map')
-rw-r--r--test/map/transform.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/map/transform.cpp b/test/map/transform.cpp
index c490ca4894..d07a8d3880 100644
--- a/test/map/transform.cpp
+++ b/test/map/transform.cpp
@@ -79,6 +79,9 @@ TEST(Transform, InvalidLatLng) {
ASSERT_DOUBLE_EQ(10, transform.getLatLng().latitude);
ASSERT_DOUBLE_EQ(8, transform.getLatLng().longitude);
ASSERT_DOUBLE_EQ(4, transform.getScale());
+
+ ASSERT_FALSE(transform.latLngToScreenCoordinate(LatLng::null()));
+ ASSERT_FALSE(transform.screenCoordinateToLatLng(ScreenCoordinate::null()));
}