From 621f9d245ce14da34097a89890aa15cef525bede Mon Sep 17 00:00:00 2001 From: Vladimir Byko-Ianko Date: Thu, 10 Nov 2016 09:07:47 +0300 Subject: [PATCH] Tests on three and more link restrictions. --- generator/generator_tests/restriction_test.cpp | 17 +++++++++++++++-- 1 file 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