Changeset 16771 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2020-07-15T18:58:09+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/actions/corrector/ReverseWayTagCorrectorTest.java
r16182 r16771 59 59 assertSwitch(new Tag(k, "something"), new Tag(k, "something")); 60 60 } 61 // numbered incline (see #19508) 62 assertSwitch(new Tag("incline", "+0%"), new Tag("incline", "0%")); 63 assertSwitch(new Tag("incline", ".1%"), new Tag("incline", "-.1%")); 64 assertSwitch(new Tag("incline", "-10.0%"), new Tag("incline", "10.0%")); 65 assertSwitch(new Tag("incline", "0,6°"), new Tag("incline", "-0.6°")); 61 66 // direction=forward/backward/... 62 67 assertSwitch(new Tag("direction", "forward"), new Tag("direction", "backward")); … … 100 105 101 106 private void assertSwitch(Tag oldTag, Tag newTag) { 102 Assert.assertEquals( ReverseWayTagCorrector.TagSwitcher.apply(oldTag), newTag);107 Assert.assertEquals(newTag, ReverseWayTagCorrector.TagSwitcher.apply(oldTag)); 103 108 } 104 109
Note:
See TracChangeset
for help on using the changeset viewer.