Changeset 15614 in josm for trunk/test/unit/org


Ignore:
Timestamp:
2019-12-25T20:37:52+01:00 (5 years ago)
Author:
Don-vip
Message:

fix #18322 - allow uppercase superscript latin characters in *ref tags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/data/validation/tests/TagCheckerTest.java

    r15613 r15614  
    317317
    318318    /**
     319     * Non-regression test for <a href="https://josm.openstreetmap.de/ticket/18322">Bug #18322</a>.
     320     */
     321    @Test
     322    public void testTicket18322() {
     323        assertTrue(TagChecker.containsUnusualUnicodeCharacter("name", "D36ᴬ"));
     324        assertFalse(TagChecker.containsUnusualUnicodeCharacter("ref", "D36ᴬ"));
     325        assertFalse(TagChecker.containsUnusualUnicodeCharacter("old_ref", "D36ᴬ"));
     326        assertFalse(TagChecker.containsUnusualUnicodeCharacter("old_ref", "D36ᵂ"));
     327        assertTrue(TagChecker.containsUnusualUnicodeCharacter("old_ref", "D36ᴫ"));
     328        assertTrue(TagChecker.containsUnusualUnicodeCharacter("old_ref", "D36ᵃ"));
     329    }
     330
     331    /**
    319332     * Non-regression test for <a href="https://josm.openstreetmap.de/ticket/18449">Bug #18449</a>.
    320333     */
Note: See TracChangeset for help on using the changeset viewer.