Changeset 7932 in josm


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

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

Location:
trunk
Files:
3 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}
  • trunk/src/org/openstreetmap/josm/data/validation/tests/UntaggedWay.java

    r7509 r7932  
    7979        if (!tags.isEmpty()) {
    8080            String highway = tags.get("highway");
    81             if (highway != null && NAMED_WAYS.contains(highway) && !tags.containsKey("name") && !tags.containsKey("ref")) {
     81            if (highway != null && NAMED_WAYS.contains(highway) && !tags.containsKey("name") && !tags.containsKey("ref")
     82                    && !"yes".equals(tags.get("noname"))) {
    8283                boolean isRoundabout = false;
    8384                boolean hasName = false;
Note: See TracChangeset for help on using the changeset viewer.