commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1043648 - /commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/StringUtilsTest.java
Date Wed, 08 Dec 2010 20:03:32 GMT
Author: sebb
Date: Wed Dec  8 20:03:32 2010
New Revision: 1043648

URL: http://svn.apache.org/viewvc?rev=1043648&view=rev
Log:
Add a test for stripEnd

Modified:
    commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/StringUtilsTest.java

Modified: commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/StringUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/StringUtilsTest.java?rev=1043648&r1=1043647&r2=1043648&view=diff
==============================================================================
--- commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/StringUtilsTest.java
(original)
+++ commons/proper/lang/branches/LANG_2_X/src/test/java/org/apache/commons/lang/StringUtilsTest.java
Wed Dec  8 20:03:32 2010
@@ -1905,4 +1905,8 @@ public class StringUtilsTest extends Tes
         assertFalse(StringUtils.startsWithAny("abcxyz", new String[] {null, "xyz", "abcd"}));
     }
  
+    public void testLANG666() {
+        assertEquals("12",StringUtils.stripEnd("120.00", ".00"));
+        assertEquals("121",StringUtils.stripEnd("121.00", ".00"));
+    }
 }



Mime
View raw message