Skip to content

Commit 90211fc

Browse files
committed
Allow command-line testing
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1842239 13f79535-47bb-0310-9956-ffa450edef68
1 parent 2039185 commit 90211fc

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,4 +233,13 @@ public void testVariationsMeyer() throws EncoderException {
233233
final String data[] = {"Meier", "Maier", "Mair", "Meyer", "Meyr", "Mejer", "Major"};
234234
this.checkEncodingVariations("67", data);
235235
}
236+
237+
// Allow command-line testing
238+
public static void main(String args[]) {
239+
ColognePhonetic coder = new ColognePhonetic();
240+
for(String arg : args) {
241+
String code = coder.encode(arg);
242+
System.out.println("'" + arg + "' = '" + code + "'");
243+
}
244+
}
236245
}

0 commit comments

Comments
 (0)