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

add numerical test for building:levels

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.