[ http://issues.apache.org/jira/browse/CODEC-51?page=comments#action_12450594 ] Henri Yandell commented on CODEC-51: ------------------------------------
It seems like it comes down to whether Character.isLetter consider a character to be a letter or not. If it doesn't, then the string gets fully cleaned and returns early. Thus an empty string comes back rather than the expected IllegalArgumentException. > 2 Test failures in SoundexTest > ------------------------------ > > Key: CODEC-51 > URL: http://issues.apache.org/jira/browse/CODEC-51 > Project: Commons Codec > Issue Type: Bug > Environment: Debian Linux, JDK 1.4.2 and 1.6 > Reporter: Henri Yandell > Fix For: 1.4 > > > Testsuite: org.apache.commons.codec.language.SoundexTest > Tests run: 25, Failures: 2, Errors: 0, Time elapsed: 0.907 sec > Testcase: > testUsMappingOWithDiaeresis(org.apache.commons.codec.language.SoundexTest): > FAILED > expected:<?000> but was:<> > junit.framework.ComparisonFailure: expected:<?000> but was:<> > at > org.apache.commons.codec.language.SoundexTest.testUsMappingOWithDiaeresis(SoundexTest.java:349) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > Testcase: > testUsMappingEWithAcute(org.apache.commons.codec.language.SoundexTest): > FAILED > expected:<?000> but was:<> > junit.framework.ComparisonFailure: expected:<?000> but was:<> > at > org.apache.commons.codec.language.SoundexTest.testUsMappingEWithAcute(SoundexTest.java:364) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]