Ignore:
Timestamp:
2024-02-13T15:58:15+01:00 (9 months ago)
Author:
taylor.smock
Message:

See #23468: Improve performance in the validator tree window

This fixes an issue where there was a difference in sorting algorithms between
the faster ASCII only sorting method and the sorting method used by non-ASCII
strings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/osm/DefaultNameFormatterTest.java

    r18106 r18977  
    7979
    8080            // CHECKSTYLE.OFF: SingleSpaceSeparator
    81             assertEquals(comparator.compare(p1, p2), -1); // p1 < p2
    82             assertEquals(comparator.compare(p2, p1),  1); // p2 > p1
     81            assertEquals(-1, comparator.compare(p1, p2)); // p1 < p2
     82            assertEquals(1,  comparator.compare(p2, p1)); // p2 > p1
    8383
    84             assertEquals(comparator.compare(p1, p3), -1); // p1 < p3
    85             assertEquals(comparator.compare(p3, p1),  1); // p3 > p1
    86             assertEquals(comparator.compare(p2, p3),  1); // p2 > p3
    87             assertEquals(comparator.compare(p3, p2), -1); // p3 < p2
     84            assertEquals(-1, comparator.compare(p1, p3)); // p1 < p3
     85            assertEquals(1,  comparator.compare(p3, p1)); // p3 > p1
     86            assertEquals(1,  comparator.compare(p2, p3)); // p2 > p3
     87            assertEquals(-1, comparator.compare(p3, p2)); // p3 < p2
    8888            // CHECKSTYLE.ON: SingleSpaceSeparator
    8989
Note: See TracChangeset for help on using the changeset viewer.