Changeset 9737 in josm for trunk


Ignore:
Timestamp:
2016-02-04T20:05:11+01:00 (9 years ago)
Author:
Klumbumbus
Message:

add numerical test for building:levels

Location:
trunk/data/validator
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/validator/ignoretags.cfg

    r9725 r9737  
    100100E:seamark:type
    101101E:traffic_sign
     102E:building:levels
    102103;
    103104; Ignore valid and semi-valid keys that end with...
  • trunk/data/validator/numeric.mapcss

    r9736 r9737  
    2626}
    2727
     28*[building:levels][building:levels !~ /^(([0-9]|[1-9][0-9]*)(\.5)?)$/],
    2829*[level][level !~ /^((([0-9]|-[1-9])|[1-9][0-9]*)(\.5)?)(;(([0-9]|-[1-9])|[1-9][0-9]*)(\.5)?)*$|^-0\.5$/] {
    29   throwWarning: tr("level should be numbers with optional .5 increments");
     30  throwWarning: tr("{0} should have numbers only with optional .5 increments", "{0.key}");
    3031  assertMatch: "node level=one";
    3132  assertNoMatch: "node level=0";
     
    3435  assertNoMatch: "node level=-0.5";
    3536  assertNoMatch: "node level=1.5";
     37  assertNoMatch: "node building:levels=1.5";
     38  assertMatch: "node building:levels=-1";
     39  assertNoMatch: "node building:levels=0";
    3640}
    3741
Note: See TracChangeset for help on using the changeset viewer.