Adding my LANG-623 unit test. It showed there was no issue, but might as well keep it there in case it's reopened

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@956788 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Henri Yandell 2010-06-22 06:37:47 +00:00
parent bef3eb6ed0
commit e0020ed3d6
1 changed files with 5 additions and 0 deletions

View File

@ -945,6 +945,11 @@ public class StringUtilsTest extends TestCase {
assertEquals("test", StringUtils.deleteWhitespace("\u000Bt \t\n\u0009e\rs\n\n \tt"));
}
public void testLang623() {
assertEquals("t", StringUtils.replaceChars("\u00DE", '\u00DE', 't'));
assertEquals("t", StringUtils.replaceChars("\u00FE", '\u00FE', 't'));
}
public void testReplace_StringStringString() {
assertEquals(null, StringUtils.replace(null, null, null));
assertEquals(null, StringUtils.replace(null, null, "any"));