Changeset 11405 in josm for trunk/test/unit/org
- Timestamp:
- 2016-12-15T21:36:30+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/tools/AlphanumComparatorTest.java
r11404 r11405 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.tools; 3 4 import static org.junit.Assert.assertEquals; 3 5 4 6 import java.util.Arrays; … … 20 22 List<String> lst = Arrays.asList("1", "20", "-1", "00999", "100"); 21 23 Collections.sort(lst, AlphanumComparator.getInstance()); 22 assert lst == Arrays.asList("-1", "1", "20", "100", "00999");24 assertEquals(Arrays.asList("-1", "1", "20", "100", "00999"), lst); 23 25 } 24 26 … … 30 32 List<String> lst = Arrays.asList("b1", "b20", "a5", "a00999", "a100"); 31 33 Collections.sort(lst, AlphanumComparator.getInstance()); 32 assert lst == Arrays.asList("a5", "a100", "a00999", "b1", "b20");34 assertEquals(Arrays.asList("a5", "a100", "a00999", "b1", "b20"), lst); 33 35 } 34 36 }
Note:
See TracChangeset
for help on using the changeset viewer.