Skip to content

Commit 7a22208

Browse files
committed
Fix assert
1 parent 7415aa4 commit 7a22208

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

transport.validator.mapcss

+12-12
Original file line numberDiff line numberDiff line change
@@ -41,42 +41,42 @@ relation.pt_route[!public_transport:version],
4141
relation.pt_route_master[!public_transport:version]
4242
{
4343
throwError: "Jungle : La version est manquante (ajouter un tag public_transport:version)";
44-
assertNoMatch: "relation type=route public_transport:version=1";
45-
assertMatch: "relation type=route";
44+
assertNoMatch: "relation type=route route=bus public_transport:version=1";
45+
assertMatch: "relation type=route route=bus";
4646
}
4747

4848
relation.pt_route[!network],
4949
relation.pt_route_master[!network]
5050
{
5151
throwError: "Jungle : Le réseau est manquant (ajouter un tag network)";
52-
assertNoMatch: "relation type=route network=BiBiBus";
53-
assertMatch: "relation type=route";
52+
assertNoMatch: "relation type=route route=bus network=BiBiBus";
53+
assertMatch: "relation type=route route=bus";
5454
}
5555

5656
relation.pt_route[!operator],
5757
relation.pt_route_master[!operator]
5858
{
5959
throwError: "Jungle : L'opérateur est manquant (ajouter un tag operator)";
60-
assertNoMatch: "relation type=route operator=BiBiBus";
61-
assertMatch: "relation type=route";
60+
assertNoMatch: "relation type=route route=bus operator=BiBiBus";
61+
assertMatch: "relation type=route route=bus";
6262
}
6363

6464
relation.pt_route[!ref],
6565
relation.pt_route_master[!ref]
6666
{
6767
throwError: "Jungle : Le numéro de ligne est manquant (ajouter un tag ref)";
68-
assertNoMatch: "relation type=route ref=3";
69-
assertMatch: "relation type=route";
68+
assertNoMatch: "relation type=route route=bus ref=3";
69+
assertMatch: "relation type=route route=bus";
7070
}
7171

7272
relation.pt_route[!from],
7373
relation.pt_route[!to]
7474
{
7575
throwError: "Jungle : L'origine/destination est manquante (ajouter les tags from/to)";
76-
assertNoMatch: "relation type=route from=A to=B";
77-
assertMatch: "relation type=route from=A";
78-
assertMatch: "relation type=route to=B";
79-
assertMatch: "relation type=route";
76+
assertNoMatch: "relation type=route route=bus from=A to=B";
77+
assertMatch: "relation type=route route=bus from=A";
78+
assertMatch: "relation type=route route=bus to=B";
79+
assertMatch: "relation type=route route=bus";
8080
}
8181

8282
relation.pt_route["fixme:relation"="order members"]

0 commit comments

Comments
 (0)