Add test for non-blank length 1 strings
This commit is contained in:
parent
8b8c8b3703
commit
b1f41de44d
|
@ -166,6 +166,7 @@ public class StringUtilsIsTest extends AbstractLangTest {
|
||||||
assertFalse(StringUtils.isWhitespace("a "));
|
assertFalse(StringUtils.isWhitespace("a "));
|
||||||
assertFalse(StringUtils.isWhitespace(" a"));
|
assertFalse(StringUtils.isWhitespace(" a"));
|
||||||
assertFalse(StringUtils.isWhitespace("aba"));
|
assertFalse(StringUtils.isWhitespace("aba"));
|
||||||
|
assertFalse(StringUtils.isWhitespace("a"));
|
||||||
assertTrue(StringUtils.isWhitespace(StringUtilsTest.WHITESPACE));
|
assertTrue(StringUtils.isWhitespace(StringUtilsTest.WHITESPACE));
|
||||||
assertFalse(StringUtils.isWhitespace(StringUtilsTest.NON_WHITESPACE));
|
assertFalse(StringUtils.isWhitespace(StringUtilsTest.NON_WHITESPACE));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue