Changeset 7932 in josm for trunk/data


Ignore:
Timestamp:
2015-01-07T01:01:35+01:00 (5 years ago)
Author:
Don-vip
Message:

see #10938 - take noname=yes into account in validator tests

Location:
trunk/data/validator
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/validator/combinations.mapcss

    r7929 r7932  
    156156}
    157157
    158 node[amenity =~ /^(restaurant|cafe|fast_food)$/][!name] {
     158node[amenity =~ /^(restaurant|cafe|fast_food)$/][!name][noname!=yes] {
    159159  throwOther: tr("restaurant without name");
    160160  assertMatch: "node amenity=restaurant";
     161  assertNoMatch: "node amenity=restaurant noname=yes";
    161162  assertNoMatch: "node amenity=restaurant name=Foobar";
    162163}
  • trunk/data/validator/highway.mapcss

    r7926 r7932  
    4444}
    4545
    46 way[highway=unclassified][!name] {
     46way[highway=unclassified][!name][noname!=yes] {
    4747  throwOther: tr("Unnamed unclassified highway");
    4848  assertMatch: "way highway=unclassified";
     49  assertNoMatch: "way highway=unclassified noname=yes";
    4950  assertNoMatch: "way highway=unclassified name=Foo";
    5051}
Note: See TracChangeset for help on using the changeset viewer.