From 103611515538f443657c8afb4ece0b83a50baf12 Mon Sep 17 00:00:00 2001 From: Ilya Zverev Date: Tue, 17 May 2016 15:55:13 +0300 Subject: [PATCH] [tests] Check priority only for the clear style --- map/style_tests/classificator_tests.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/map/style_tests/classificator_tests.cpp b/map/style_tests/classificator_tests.cpp index 9f88f38897..726508ebaf 100644 --- a/map/style_tests/classificator_tests.cpp +++ b/map/style_tests/classificator_tests.cpp @@ -156,8 +156,12 @@ void CheckPriority(vector const & arrT, vector const & arrI, d Classificator const & c = classif(); vector > types; - styles::RunForEveryMapStyle([&](MapStyle) + styles::RunForEveryMapStyle([&](MapStyle style) { + // Not testing priorities in the legacy style, since it is not maintained anymore. + if (style == MapStyleLight) + return; + types.clear(); size_t ind = 0; @@ -181,7 +185,7 @@ void CheckPriority(vector const & arrT, vector const & arrI, d for (size_t i = 0; i < types.size(); ++i) { pair const mm = GetMinMax(level, types[i], ruleType); - TEST_LESS(minmax.second, mm.first, (i)); + TEST_LESS(minmax.second, mm.first, ("Priority bug on zoom", level, "group", i, ":", minmax.first, minmax.second, "vs", mm.first, mm.second)); minmax = mm; } }