diff options
-rw-r--r-- | indexer/indexer_tests/cell_coverer_test.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/indexer/indexer_tests/cell_coverer_test.cpp b/indexer/indexer_tests/cell_coverer_test.cpp index 0d46d03ea7..27312051c9 100644 --- a/indexer/indexer_tests/cell_coverer_test.cpp +++ b/indexer/indexer_tests/cell_coverer_test.cpp @@ -50,11 +50,14 @@ UNIT_TEST(MaxDepthCoverSpiral) { using TestBounds = Bounds<0, 0, 8, 8>; - auto cells = vector<m2::CellId<3>>{}; + for (auto depthMax = 1; depthMax <= 3; ++depthMax) + { + auto cells = vector<m2::CellId<3>>{}; - CoverSpiral<TestBounds, m2::CellId<3>>({2.1, 4.1, 2.1, 4.1}, 2, cells); + CoverSpiral<TestBounds, m2::CellId<3>>({2.1, 4.1, 2.1, 4.1}, depthMax, cells); - TEST_EQUAL(cells.size(), 1, ()); - TEST_EQUAL(cells[0].Level(), 1, ()); + TEST_EQUAL(cells.size(), 1, ()); + TEST_EQUAL(cells[0].Level(), depthMax - 1, ()); + } } |