From 11596c4cd86d10ba8813d67ff7b07a10c7caf0fa Mon Sep 17 00:00:00 2001 From: Sergey Vartanov Date: Mon, 8 Nov 2021 00:46:53 +0300 Subject: [PATCH] Issue #83: add second placement tag test. --- tests/test_elements.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tests/test_elements.py b/tests/test_elements.py index dec3e28e..781373ed 100644 --- a/tests/test_elements.py +++ b/tests/test_elements.py @@ -106,6 +106,15 @@ {"lanes": "3", "placement": "right_of:1"}, # or placement=left_of:2 ] +PLACEMENT_FEATURES_2: list[dict[str, str]] = [ + {"lanes": "2"}, + # or placement:backward=left_of:1 + {"lanes": "3", "placement:forward": "left_of:1"}, + {"lanes": "3", "placement": "transition"}, + {"lanes": "4", "placement:backward": "middle_of:1"}, + {"lanes": "3"}, +] + class Grid: """Creating map with elements ordered in grid.""" @@ -200,5 +209,7 @@ def draw( Path("out") / "width.svg", ) road_features( - ROAD_TYPES, PLACEMENT_FEATURES_1, Path("out") / "placement.svg" + ROAD_TYPES, + PLACEMENT_FEATURES_1 + [{}] + PLACEMENT_FEATURES_2, + Path("out") / "placement.svg", )