diff --git a/indexer/indexer.pro b/indexer/indexer.pro index 712e09fc2f..3c65434ddc 100644 --- a/indexer/indexer.pro +++ b/indexer/indexer.pro @@ -37,6 +37,7 @@ SOURCES += \ geometry_serialization.cpp \ index.cpp \ index_builder.cpp \ + map_style.cpp \ map_style_reader.cpp \ mercator.cpp \ mwm_set.cpp \ diff --git a/indexer/map_style.cpp b/indexer/map_style.cpp new file mode 100644 index 0000000000..d543e9753c --- /dev/null +++ b/indexer/map_style.cpp @@ -0,0 +1,15 @@ +#include "indexer/map_style.hpp" + +#include "base/assert.hpp" + +string DebugPrint(MapStyle mapStyle) +{ + switch (mapStyle) + { + case MapStyleLight: return "MapStyleLight"; + case MapStyleDark: return "MapStyleDark"; + case MapStyleClear: return "MapStyleClear"; + } + ASSERT(false, ()); + return string(); +} diff --git a/indexer/map_style.hpp b/indexer/map_style.hpp index 72131bcaa0..98d224b05c 100644 --- a/indexer/map_style.hpp +++ b/indexer/map_style.hpp @@ -1,5 +1,7 @@ #pragma once +#include "std/string.hpp" + enum MapStyle { MapStyleLight = 0, @@ -7,3 +9,5 @@ enum MapStyle MapStyleClear = 2 // Add new map style here }; + +string DebugPrint(MapStyle mapStyle); diff --git a/map/style_tests/style_symbols_consistency_test.cpp b/map/style_tests/style_symbols_consistency_test.cpp index 9e1d927cd2..1862943395 100644 --- a/map/style_tests/style_symbols_consistency_test.cpp +++ b/map/style_tests/style_symbols_consistency_test.cpp @@ -108,6 +108,8 @@ UNIT_TEST(Test_SymbolsConsistency) if (!missed.empty()) { + // We are interested in all set of bugs, therefore we do not stop test here but + // continue it just keep in res that test failed. LOG(LINFO, ("Symbols mismatch: style", style, ", density", density, ", missed", missed)); res = false; }