Add a test for stripEnd

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1043652 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2010-12-08 20:10:49 +00:00
parent 5ad967885a
commit 7e818c5afa
1 changed files with 5 additions and 0 deletions

View File

@ -1916,4 +1916,9 @@ public class StringUtilsTest extends TestCase {
assertEquals("a b c", StringUtils.normalizeSpace(" a b c ")); assertEquals("a b c", StringUtils.normalizeSpace(" a b c "));
assertEquals("a b c", StringUtils.normalizeSpace("a\t\f\r b\u000B c\n")); 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"));
}
} }