mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
add test
This commit is contained in:
parent
685925cd26
commit
f94ed6be0d
@ -72,6 +72,14 @@ public class StrUtilTest {
|
||||
Assert.assertEquals(2, strings.length);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void splitEmptyTest() {
|
||||
String str = "";
|
||||
List<String> split = StrUtil.split(str, ',', -1, true, true);
|
||||
// 测试空是否被去掉
|
||||
Assert.assertEquals(0, split.size());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void splitTest2() {
|
||||
String str = "a.b.";
|
||||
|
Loading…
x
Reference in New Issue
Block a user