Changeset 6598 in josm for trunk/test/unit/org/openstreetmap


Ignore:
Timestamp:
2014-01-02T23:14:44+01:00 (11 years ago)
Author:
simon04
Message:

see #8519 - Lanes validator: add test for lanes <= count_of(*:lanes) and the like

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/validation/tests/LanesTest.groovy

    r6592 r6598  
    3939        assert lanes.errors.get(0).getMessage() == "Number of lane dependent values inconsistent in forward direction"
    4040    }
     41
     42    void test5() {
     43        lanes.check(TestUtils.createPrimitive("way lanes:forward=5 turn:lanes:forward=left|right"))
     44        assert lanes.errors.get(0).getMessage() == "Number of lanes:forward greater than *:lanes:forward"
     45    }
     46
     47    void test6() {
     48        lanes.check(TestUtils.createPrimitive("way lanes:forward=foo|bar turn:lanes:forward=foo+bar"))
     49        assert lanes.errors.isEmpty()
     50    }
    4151}
Note: See TracChangeset for help on using the changeset viewer.