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.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/util/geo.test.cpp b/test/util/geo.test.cpp
index d0d01b6f88..38f29d1dd4 100644
--- a/test/util/geo.test.cpp
+++ b/test/util/geo.test.cpp
@@ -220,3 +220,9 @@ TEST(LatLngBounds, FromTileID) {
ASSERT_DOUBLE_EQ(util::LATITUDE_MAX, bounds.north());
}
}
+
+TEST(LatLngBounds, Contains) {
+ const LatLngBounds bounds( CanonicalTileID(4,2,6));
+ const LatLngBounds innerBounds( CanonicalTileID(9,82,197));
+ EXPECT_TRUE(bounds.contains(innerBounds));
+}