Changeset 11405 in josm


Ignore:
Timestamp:
2016-12-15T21:36:30+01:00 (3 years ago)
Author:
Don-vip
Message:

fix asserts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/tools/AlphanumComparatorTest.java

    r11404 r11405  
    11// License: GPL. For details, see LICENSE file.
    22package org.openstreetmap.josm.tools;
     3
     4import static org.junit.Assert.assertEquals;
    35
    46import java.util.Arrays;
     
    2022        List<String> lst = Arrays.asList("1", "20", "-1", "00999", "100");
    2123        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);
    2325    }
    2426
     
    3032        List<String> lst = Arrays.asList("b1", "b20", "a5", "a00999", "a100");
    3133        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);
    3335    }
    3436}
Note: See TracChangeset for help on using the changeset viewer.