Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Gorshenin <y@maps.me>2016-09-07 13:43:16 +0300
committerYuri Gorshenin <y@maps.me>2016-09-07 14:09:46 +0300
commit68b48c5c260892e554b9dbaf55f846dd29ad1311 (patch)
tree4cafa608986c8f27d2037d7e4d07bb2078629429 /indexer/indexer_tests
parente8a77fb0fbf27ba468a8b3f952efd0fb3743cabd (diff)
Review fixes.
Diffstat (limited to 'indexer/indexer_tests')
-rw-r--r--indexer/indexer_tests/categories_test.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/indexer/indexer_tests/categories_test.cpp b/indexer/indexer_tests/categories_test.cpp
index 141a05a152..8152110ca4 100644
--- a/indexer/indexer_tests/categories_test.cpp
+++ b/indexer/indexer_tests/categories_test.cpp
@@ -107,6 +107,18 @@ UNIT_TEST(LoadCategories)
TEST_EQUAL(count, 3, ());
}
+UNIT_TEST(CategoriesHolder_Smoke)
+{
+ auto const & mappings = CategoriesHolder::kLocaleMapping;
+ for (size_t i = 0; i < mappings.size(); ++i)
+ {
+ auto const & mapping = mappings[i];
+ TEST_EQUAL(i + 1, mapping.m_code, ());
+ TEST_EQUAL(i + 1, CategoriesHolder::MapLocaleToInteger(mapping.m_name), ());
+ TEST_EQUAL(CategoriesHolder::MapIntegerToLocale(i + 1), mapping.m_name, ());
+ }
+}
+
UNIT_TEST(CategoriesIndex_Smoke)
{
classificator::Load();