Modify ↓
Opened 7 years ago
Last modified 7 years ago
#17271 new defect
Cannot add assertMatch/assertNoMatch declarations with set declarations
| Reported by: | taylor.smock | Owned by: | team |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Core validator | Version: | |
| Keywords: | mapcss | Cc: |
Description (last modified by )
way[railway] { set .railway; assertMatch: "way railway=tram highway=residential"; assertMatch: "way railway=tram"; assertNoMatch: "way highway=residential"; }
I'm using the assertMatch/assertNoMatch statements for debugging (I've already seen one issue in my code).
Attachments (0)
Change History (3)
comment:1 by , 7 years ago
| Component: | Core → Core validator |
|---|
comment:2 by , 7 years ago
Sorry -- in my code I was using way[railway][highway], but I was trying to simplify it for easier testing (and I was going for nodes instead of ways, so way[railway][highway] > node and set .in_railway_highway), but I didn't think it would make for a good testcase.
comment:3 by , 7 years ago
| Description: | modified (diff) |
|---|
Note:
See TracTickets
for help on using tickets.



assertNoMatch: "way railway=tram";is wrong as it matchesway[railway], however after this fix it still doesn't work without a throwWarning/throwError/throwOther statement.