Ignore:
Timestamp:
2019-08-27T00:41:35+02:00 (5 years ago)
Author:
Don-vip
Message:

fix #18085 - Add method to get unique values in mapcss (patch by taylor.smock)

File:
1 edited

Legend:

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

    r15315 r15323  
    466466
    467467    @Test
     468    public void testUniqueValues() throws Exception {
     469        assertEquals(Arrays.asList(new String[] {"alpha", "beta"}),
     470                Functions.uniq("alpha", "alpha", "alpha", "beta"));
     471        assertEquals(Arrays.asList(new String[] {"one", "two", "three"}),
     472                Functions.uniq_list(Arrays.asList(new String[] {"one", "one", "two", "two", "two", "three"})));
     473    }
     474
     475    @Test
    468476    public void testCountRoles() throws Exception {
    469477        DataSet ds = new DataSet();
Note: See TracChangeset for help on using the changeset viewer.