diff --git a/generator/generator_tests/osm_type_test.cpp b/generator/generator_tests/osm_type_test.cpp index b1a4089d1d..4df0807102 100644 --- a/generator/generator_tests/osm_type_test.cpp +++ b/generator/generator_tests/osm_type_test.cpp @@ -844,6 +844,33 @@ UNIT_CLASS_TEST(TestWithClassificator, OsmType_Cuisine) } } +UNIT_CLASS_TEST(TestWithClassificator, OsmType_Hotel) +{ + using Type = std::vector; + std::vector, Tags>> const types = { + { + {{"tourism", "hotel"}}, + {{"tourism", "hotel"}}, + }, + { + {{"tourism", "hotel"}, {"building"}}, + {{"building", "hotel"}}, + }, + { + {{"tourism", "hotel"}}, + {{"hotel", "yes"}}, + } + }; + + for (auto const & t : types) + { + auto const params = GetFeatureBuilderParams(t.second); + TEST_EQUAL(t.first.size(), params.m_types.size(), (params, t)); + for (auto const & t : t.first) + TEST(params.IsTypeExist(GetType(t)), (params)); + } +} + UNIT_CLASS_TEST(TestWithClassificator, OsmType_MergeTags) { {