Modify

Opened 5 years ago

Last modified 5 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 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 by Klumbumbus, 5 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, 5 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, 5 years ago

Description: modified (diff)

Modify Ticket

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

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.