summaryrefslogtreecommitdiff
path: root/test/util/tile_cover.test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/util/tile_cover.test.cpp')
-rw-r--r--test/util/tile_cover.test.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/test/util/tile_cover.test.cpp b/test/util/tile_cover.test.cpp
index c746e6dab5..2cb5623803 100644
--- a/test/util/tile_cover.test.cpp
+++ b/test/util/tile_cover.test.cpp
@@ -6,28 +6,28 @@
using namespace mbgl;
-TEST(TileCover, Empty) {
+TEST(TileCover, Empty) { // NOLINT
EXPECT_EQ((std::vector<UnwrappedTileID>{}), util::tileCover(LatLngBounds::empty(), 0));
}
-TEST(TileCover, Arctic) {
+TEST(TileCover, Arctic) { // NOLINT
EXPECT_EQ((std::vector<UnwrappedTileID>{}),
util::tileCover(LatLngBounds::hull({ 86, -180 }, { 90, 180 }), 0));
}
-TEST(TileCover, Antarctic) {
+TEST(TileCover, Antarctic) { // NOLINT
EXPECT_EQ((std::vector<UnwrappedTileID>{}),
util::tileCover(LatLngBounds::hull({ -86, -180 }, { -90, 180 }), 0));
}
-TEST(TileCover, WorldZ0) {
+TEST(TileCover, WorldZ0) { // NOLINT
EXPECT_EQ((std::vector<UnwrappedTileID>{
{ 0, 0, 0 },
}),
util::tileCover(LatLngBounds::world(), 0));
}
-TEST(TileCover, Pitch) {
+TEST(TileCover, Pitch) { // NOLINT
Transform transform;
transform.resize({ 512, 512 });
// slightly offset center so that tile order is better defined
@@ -42,19 +42,19 @@ TEST(TileCover, Pitch) {
util::tileCover(transform.getState(), 2));
}
-TEST(TileCover, WorldZ1) {
+TEST(TileCover, WorldZ1) { // NOLINT
EXPECT_EQ((std::vector<UnwrappedTileID>{
{ 1, 0, 0 }, { 1, 0, 1 }, { 1, 1, 0 }, { 1, 1, 1 },
}),
util::tileCover(LatLngBounds::world(), 1));
}
-TEST(TileCover, SingletonZ0) {
+TEST(TileCover, SingletonZ0) { // NOLINT
EXPECT_EQ((std::vector<UnwrappedTileID>{}),
util::tileCover(LatLngBounds::singleton({ 0, 0 }), 0));
}
-TEST(TileCover, SingletonZ1) {
+TEST(TileCover, SingletonZ1) { // NOLINT
EXPECT_EQ((std::vector<UnwrappedTileID>{}),
util::tileCover(LatLngBounds::singleton({ 0, 0 }), 1));
}
@@ -62,14 +62,14 @@ TEST(TileCover, SingletonZ1) {
static const LatLngBounds sanFrancisco =
LatLngBounds::hull({ 37.6609, -122.5744 }, { 37.8271, -122.3204 });
-TEST(TileCover, SanFranciscoZ0) {
+TEST(TileCover, SanFranciscoZ0) { // NOLINT
EXPECT_EQ((std::vector<UnwrappedTileID>{
{ 0, 0, 0 },
}),
util::tileCover(sanFrancisco, 0));
}
-TEST(TileCover, SanFranciscoZ10) {
+TEST(TileCover, SanFranciscoZ10) { // NOLINT
EXPECT_EQ((std::vector<UnwrappedTileID>{
{ 10, 163, 395 }, { 10, 163, 396 }, { 10, 164, 395 }, { 10, 164, 396 },
@@ -80,7 +80,7 @@ TEST(TileCover, SanFranciscoZ10) {
static const LatLngBounds sanFranciscoWrapped =
LatLngBounds::hull({ 37.6609, 238.5744 }, { 37.8271, 238.3204 });
-TEST(TileCover, SanFranciscoZ0Wrapped) {
+TEST(TileCover, SanFranciscoZ0Wrapped) { // NOLINT
EXPECT_EQ((std::vector<UnwrappedTileID>{ { 0, 1, 0 } }),
util::tileCover(sanFranciscoWrapped, 0));
}