Changeset 15842 in josm for trunk/test/unit
- Timestamp:
- 2020-02-11T20:31:02+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/autofilter/AutoFilterRuleTest.java
r15839 r15842 25 25 @Rule 26 26 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 27 public JOSMTestRules test = new JOSMTestRules() ;27 public JOSMTestRules test = new JOSMTestRules().i18n(); 28 28 29 29 /** … … 32 32 @Test 33 33 public void testTagValuesForPrimitive() { 34 // #17109, support values like 0.5 or 1.5 - level values are multiplied by 2 when parsing, values are divided by 2 for formatting 34 35 final AutoFilterRule level = AutoFilterRule.getDefaultRule("level").orElseThrow(NoSuchElementException::new); 35 assertTagValuesForPrimitive(level, "way level=-4--5", - 5, -4);36 assertTagValuesForPrimitive(level, "way level=-2", - 2);36 assertTagValuesForPrimitive(level, "way level=-4--5", -10, -9, -8); 37 assertTagValuesForPrimitive(level, "way level=-2", -4); 37 38 assertTagValuesForPrimitive(level, "node level=0", 0); 38 assertTagValuesForPrimitive(level, "way level=1", 1); 39 assertTagValuesForPrimitive(level, "way level=2;3", 2, 3); 40 assertTagValuesForPrimitive(level, "way level=6-9", 6, 7, 8, 9); 41 assertTagValuesForPrimitive(level, "way level=10;12-13", 10, 12, 13); 39 assertTagValuesForPrimitive(level, "way level=1", 2); 40 assertTagValuesForPrimitive(level, "way level=2;3", 4, 6); 41 assertTagValuesForPrimitive(level, "way level=6-9", 12, 13, 14, 15, 16, 17, 18); 42 assertTagValuesForPrimitive(level, "way level=10;12-13", 20, 24, 25, 26); 43 assertTagValuesForPrimitive(level, "way level=0;0.5;1;1.5;2;2.5;3", 0, 1, 2, 3, 4, 5, 6); 42 44 } 43 45
Note:
See TracChangeset
for help on using the changeset viewer.