Opened 7 years ago

Last modified 7 years ago

#17271 new defect

Cannot add assertMatch/assertNoMatch declarations with set declarations — at Version 3

Reported by: taylor.smock Owned by: team
Priority: normal Milestone:
Component: Core validator Version:
Keywords: mapcss Cc:

Description (last modified by taylor.smock)

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).

Change History (3)

comment:1 by Klumbumbus, 7 years ago

Component: CoreCore validator

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

comment:2 by taylor.smock, 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 taylor.smock, 7 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.