commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject cvs commit: jakarta-commons/lang/src/test/org/apache/commons/lang StringUtilsTest.java
Date Fri, 22 Nov 2002 23:33:34 GMT
bayard      2002/11/22 15:33:34

  Modified:    lang/src/test/org/apache/commons/lang StringUtilsTest.java
  Log:
  Threw in a test for newline replacement. This was a problem in String Taglib and having
this test let me know it wasn't the fault of StringUtils.
  
  Revision  Changes    Path
  1.8       +3 -1      jakarta-commons/lang/src/test/org/apache/commons/lang/StringUtilsTest.java
  
  Index: StringUtilsTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/test/org/apache/commons/lang/StringUtilsTest.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- StringUtilsTest.java	7 Nov 2002 21:52:44 -0000	1.7
  +++ StringUtilsTest.java	22 Nov 2002 23:33:34 -0000	1.8
  @@ -196,6 +196,8 @@
                        "", StringUtils.replace(FOO + FOO + FOO, FOO, ""));
           assertEquals("replaceOnce(String, String, String) failed",
                        FOO, StringUtils.replaceOnce(FOO + FOO, FOO, ""));
  +        assertEquals("carriage-return replace(String,String,String) failed",
  +                     "test123", StringUtils.replace("test\r1\r2\r3", "\r", ""));
       }
   
       public void testOverlayString()
  
  
  

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


Mime
View raw message