From 36379662df177769ef7254965e01080f920b5599 Mon Sep 17 00:00:00 2001 From: Anatoly Serdtcev Date: Tue, 25 Dec 2018 19:40:39 +0300 Subject: [PATCH] [indexer:tests] Add max depth variants in test MaxDepthCoverSpiral --- indexer/indexer_tests/cell_coverer_test.cpp | 11 +++++++---- 1 file 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>{}; + for (auto depthMax = 1; depthMax <= 3; ++depthMax) + { + auto cells = vector>{}; - CoverSpiral>({2.1, 4.1, 2.1, 4.1}, 2, cells); + CoverSpiral>({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, ()); + } }