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:
authorVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2016-11-10 09:07:47 +0300
committerVladimir Byko-Ianko <v.bykoianko@corp.mail.ru>2016-11-10 18:58:24 +0300
commit621f9d245ce14da34097a89890aa15cef525bede (patch)
tree1a78e3bf82690d988cc997082ef1d703645d4bea /generator
parent31f78dbf4672777a9d4bed791b5ec4da6cda297b (diff)
Tests on three and more link restrictions.
Diffstat (limited to 'generator')
-rw-r--r--generator/generator_tests/restriction_test.cpp17
1 files changed, 15 insertions, 2 deletions
diff --git a/generator/generator_tests/restriction_test.cpp b/generator/generator_tests/restriction_test.cpp
index 33dd618c80..27e88f25d3 100644
--- a/generator/generator_tests/restriction_test.cpp
+++ b/generator/generator_tests/restriction_test.cpp
@@ -106,7 +106,7 @@ UNIT_TEST(RestrictionGenerationTest_OneRestriction)
TestRestrictionBuilding(restrictionContent, featureIdToOsmIdsContent);
}
-UNIT_TEST(RestrictionGenerationTest_ThreeRestriction)
+UNIT_TEST(RestrictionGenerationTest_ThreeRestrictions)
{
string const restrictionContent = R"(No, 10, 10,
Only, 10, 20
@@ -118,7 +118,7 @@ UNIT_TEST(RestrictionGenerationTest_ThreeRestriction)
TestRestrictionBuilding(restrictionContent, featureIdToOsmIdsContent);
}
-UNIT_TEST(RestrictionGenerationTest_SevenRestriction)
+UNIT_TEST(RestrictionGenerationTest_SevenRestrictions)
{
string const restrictionContent = R"(No, 10, 10,
No, 20, 20,
@@ -133,4 +133,17 @@ UNIT_TEST(RestrictionGenerationTest_SevenRestriction)
4, 40)";
TestRestrictionBuilding(restrictionContent, featureIdToOsmIdsContent);
}
+
+UNIT_TEST(RestrictionGenerationTest_ThereAndMoreLinkRestrictions)
+{
+ string const restrictionContent = R"(No, 10, 10,
+ No, 20, 20,
+ Only, 10, 20, 30, 40
+ Only, 20, 30, 40)";
+ string const featureIdToOsmIdsContent = R"(1, 10,
+ 2, 20,
+ 3, 30,
+ 4, 40)";
+ TestRestrictionBuilding(restrictionContent, featureIdToOsmIdsContent);
+}
} // namespace