summaryrefslogtreecommitdiff
path: root/test/util/geo.test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/util/geo.test.cpp')
-rw-r--r--test/util/geo.test.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/util/geo.test.cpp b/test/util/geo.test.cpp
index 6832ba3486..af8e815670 100644
--- a/test/util/geo.test.cpp
+++ b/test/util/geo.test.cpp
@@ -170,6 +170,10 @@ TEST(LatLng, Boundaries) {
coordinate.wrap();
ASSERT_DOUBLE_EQ(179.90000000000001, coordinate.longitude()); // 1E-14
+ coordinate = LatLng(0, 180);
+ coordinate.wrap();
+ ASSERT_DOUBLE_EQ(180.0, coordinate.longitude());
+
coordinate = LatLng(0, 180.9);
coordinate.wrap();
ASSERT_DOUBLE_EQ(-179.09999999999999, coordinate.longitude());