commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject cvs commit: jakarta-commons/codec/src/test/org/apache/commons/codec/language SoundexTest.java
Date Fri, 07 Nov 2003 01:21:47 GMT
ggregory    2003/11/06 17:21:47

  Modified:    codec/src/test/org/apache/commons/codec/language
                        SoundexTest.java
  Log:
  Soundex.setMaxLength causes bugs and is not needed.
  http://issues.apache.org/bugzilla/show_bug.cgi?id=24484
  
  Revision  Changes    Path
  1.7       +8 -1      jakarta-commons/codec/src/test/org/apache/commons/codec/language/SoundexTest.java
  
  Index: SoundexTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/codec/src/test/org/apache/commons/codec/language/SoundexTest.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- SoundexTest.java	6 Nov 2003 16:31:47 -0000	1.6
  +++ SoundexTest.java	7 Nov 2003 01:21:47 -0000	1.7
  @@ -304,6 +304,13 @@
       public void testMaxLength() throws Exception {
           Soundex soundex = new Soundex();
           soundex.setMaxLength(soundex.getMaxLength());
  +        assertEquals("S460", this.getEncoder().encode("Sgler"));
  +    }
  +
  +    public void testMaxLengthLessThan3Fix() throws Exception {
  +        Soundex soundex = new Soundex();
  +        soundex.setMaxLength(2);
  +        assertEquals("S460", soundex.encode("SCHELLER"));
       }
   
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message