Ignore:
Timestamp:
2020-08-28T22:38:26+02:00 (4 years ago)
Author:
simon04
Message:

see #19717 - Extract DefaultNameFormatter.removeBiDiCharacters

File:
1 edited

Legend:

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

    r16951 r16952  
    168168                        TestUtils.newNode("tourism=hotel name:en=foo url=http://foo.bar xml=<tag/>")));
    169169    }
     170
     171    /**
     172     * Test of {@link DefaultNameFormatter#removeBiDiCharacters(String)}.
     173     */
     174    @Test
     175    public void testRemoveBiDiCharacters() {
     176        assertEquals("building (0 nodes)", DefaultNameFormatter.removeBiDiCharacters("\u200Ebuilding\u200E (0 nodes)\u200C"));
     177    }
    170178}
Note: See TracChangeset for help on using the changeset viewer.