Changeset 11360 in josm for trunk/test/unit


Ignore:
Timestamp:
2016-12-04T15:06:02+01:00 (8 years ago)
Author:
bastiK
Message:

fixed #10387 - efficiency for "inside(...)" function in MapCSS

File:
1 edited

Legend:

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

    r11324 r11360  
    22package org.openstreetmap.josm.tools;
    33
    4 import static org.junit.Assert.assertEquals;
    54import static org.junit.Assert.assertTrue;
    6 
    7 import java.util.Set;
    85
    96import org.junit.Rule;
     
    3431
    3532    private static void check(String name, LatLon ll, String ... expectedCodes) {
    36         Set<String> codes = Territories.getIso3166Codes(ll);
    37         assertEquals(name + " -> " + codes, expectedCodes.length, codes.size());
    3833        for (String e : expectedCodes) {
    39             assertTrue(e, codes.contains(e));
     34            assertTrue(name + " " + e, Territories.isIso3166Code(e, ll));
    4035        }
    4136    }
Note: See TracChangeset for help on using the changeset viewer.