Opened 3 months ago

Last modified 3 months 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 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).

Attachments (0)

Change History (3)

comment:1 Changed 3 months ago by Klumbumbus

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 Changed 3 months ago by taylor.smock

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 Changed 3 months ago by taylor.smock

Description: modified (diff)

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain team.
as The resolution will be set.
to The owner will be changed from team to the specified user.
The owner will change to taylor.smock
as duplicate The resolution will be set to duplicate.The specified ticket will be cross-referenced with this ticket
The owner will be changed from team to anonymous.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.