mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add test
This commit is contained in:
@@ -1,10 +1,17 @@
|
|||||||
package cn.hutool.core.util;
|
package cn.hutool.core.util;
|
||||||
|
|
||||||
|
import org.junit.Assert;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
public class Issue3660Test {
|
public class Issue3660Test {
|
||||||
@Test
|
@Test
|
||||||
public void splitTest() {
|
public void splitTest() {
|
||||||
System.out.println(StrUtil.split("", ','));
|
List<String> split = StrUtil.split("", ',');
|
||||||
|
Assert.assertEquals(1, split.size());
|
||||||
|
|
||||||
|
split = StrUtil.splitTrim("", ',');
|
||||||
|
Assert.assertEquals(0, split.size());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user