commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1043652 - /commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringUtilsTest.java
Date Wed, 08 Dec 2010 20:10:49 GMT
Author: sebb
Date: Wed Dec  8 20:10:49 2010
New Revision: 1043652

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

Modified:
    commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringUtilsTest.java

Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringUtilsTest.java?rev=1043652&r1=1043651&r2=1043652&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringUtilsTest.java
(original)
+++ commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringUtilsTest.java
Wed Dec  8 20:10:49 2010
@@ -1916,4 +1916,9 @@ public class StringUtilsTest extends Tes
         assertEquals("a b c", StringUtils.normalizeSpace("  a  b   c  "));
         assertEquals("a b c", StringUtils.normalizeSpace("a\t\f\r  b\u000B   c\n"));
     }
+
+    public void testLANG666() {
+        assertEquals("12",StringUtils.stripEnd("120.00", ".00"));
+        assertEquals("121",StringUtils.stripEnd("121.00", ".00"));
+    }
 }



Mime
View raw message