Skip to content

Commit a9690db

Browse files
committed
Add test for small sharp s (Eszett) and lower-case versions
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1842088 13f79535-47bb-0310-9956-ffa450edef68
1 parent 4703e76 commit a9690db

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/test/java/org/apache/commons/codec/language/ColognePhoneticTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ public void testEdgeCases() throws EncoderException {
6666
{"\u00E4", "0"}, // a-umlaut
6767
{"\u00F6", "0"}, // o-umlaut
6868
{"\u00FC", "0"}, // u-umlaut
69+
{"\u00DF", "8"}, // small sharp s
6970
{"aa", "0"},
7071
{"ha", "0"},
7172
{"h", ""},
@@ -94,6 +95,7 @@ public void testEdgeCases() throws EncoderException {
9495
public void testExamples() throws EncoderException {
9596
final String[][] data = {
9697
{"m\u00DCller", "657"}, // mÜller - why upper case U-umlaut?
98+
{"m\u00FCller", "657"}, // müller - add equivalent lower-case
9799
{"schmidt", "862"},
98100
{"schneider", "8627"},
99101
{"fischer", "387"},
@@ -102,6 +104,7 @@ public void testExamples() throws EncoderException {
102104
{"becker", "147"},
103105
{"hoffmann", "0366"},
104106
{"sch\u00C4fer", "837"}, // schÄfer - why upper case A-umlaut ?
107+
{"sch\u00e4fer", "837"}, // schäfer - add equivalent lower-case
105108
{"Breschnew", "17863"},
106109
{"Wikipedia", "3412"},
107110
{"peter", "127"},

0 commit comments

Comments
 (0)