Ignore:
Timestamp:
2021-03-17T22:15:57+01:00 (4 years ago)
Author:
simon04
Message:

see #20613 - Avoid heap allocations in DividedScale.getWithRange

4.74% in AbstractMapRendererPerformanceTestParent#testCity amount to Range from DividedScale.getWithRange

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/mappaint/DividedScaleTest.java

    r17575 r17582  
    103103                .put("foo", new Range(4., 8.));
    104104        Exception ex = assertThrows(DividedScale.RangeViolatedError.class, () -> scale.put("bar", new Range(4., 9.)));
    105         assertEquals("the new range must be within a single subrange (1)", ex.getMessage());
     105        assertEquals("the new range must be within a single subrange", ex.getMessage());
    106106    }
    107107
     
    125125                .put("foo", new Range(4., 8.));
    126126        Exception ex = assertThrows(DividedScale.RangeViolatedError.class, () -> scale.put("bar", new Range(2., 5.)));
    127         assertEquals("the new range must be within a single subrange (2)", ex.getMessage());
     127        assertEquals("the new range must be within a single subrange", ex.getMessage());
    128128    }
    129129}
Note: See TracChangeset for help on using the changeset viewer.