commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject cvs commit: jakarta-commons/lang/src/test/org/apache/commons/lang StringUtilsEqualsIndexOfTest.java
Date Sat, 26 Jul 2003 14:36:30 GMT
scolebourne    2003/07/26 07:36:30

  Modified:    lang/src/test/org/apache/commons/lang
                        StringUtilsEqualsIndexOfTest.java
  Log:
  Add test for indexOf edge case
  
  Revision  Changes    Path
  1.5       +2 -1      jakarta-commons/lang/src/test/org/apache/commons/lang/StringUtilsEqualsIndexOfTest.java
  
  Index: StringUtilsEqualsIndexOfTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/test/org/apache/commons/lang/StringUtilsEqualsIndexOfTest.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- StringUtilsEqualsIndexOfTest.java	20 Jul 2003 23:57:26 -0000	1.4
  +++ StringUtilsEqualsIndexOfTest.java	26 Jul 2003 14:36:30 -0000	1.5
  @@ -159,6 +159,7 @@
           assertEquals(0, StringUtils.indexOf("abc", "", 0));
           assertEquals(0, StringUtils.indexOf("abc", "", -1));
           assertEquals(3, StringUtils.indexOf("abc", "", 9));
  +        assertEquals(3, StringUtils.indexOf("abc", "", 3));
           assertEquals(0, StringUtils.indexOf("aabaabaa", "a", 0));
           assertEquals(2, StringUtils.indexOf("aabaabaa", "b", 0));
           assertEquals(1, StringUtils.indexOf("aabaabaa", "ab", 0));
  
  
  

---------------------------------------------------------------------
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