Changeset 12283 in josm for trunk/test/unit


Ignore:
Timestamp:
2017-05-31T03:12:36+02:00 (2 years ago)
Author:
Don-vip
Message:

fix #14858 - "Similarly named ways" test: detect accent and case variations for strings of same length

File:
1 edited

Legend:

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

    r11403 r12283  
    8888    }
    8989
     90    /**
     91     * Test similar names.
     92     */
    9093    @Test
    9194    public void testSimilarNames() {
     
    118121        checkSimilarity("first and second 2 changes", "First Street", "Soconds Street", true);
    119122        checkSimilarity("first and second 3 changes", "First Street", "Soconds Stret", false);
     123
     124        // case only, see #14858
     125        checkSimilarity("case only", "Rua São João", "Rua Sao Joao", true);
     126        checkSimilarity("case only", "Rua São João", "Rua SAO JOAO", true);
     127        checkSimilarity("case only", "Rua Sao Joao", "Rua SAO JOAO", true);
     128        checkSimilarity("case only", "Rue éèçàïù", "Rue EeCAIU", true);
    120129    }
    121130}
Note: See TracChangeset for help on using the changeset viewer.