mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-05 17:37:59 +08:00
add test
This commit is contained in:
parent
9db9648539
commit
e117489d7a
@ -0,0 +1,19 @@
|
||||
package cn.hutool.core.util;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
public class IssueI9UK5VTest {
|
||||
@Test
|
||||
public void splitTest() {
|
||||
String str = "";
|
||||
List<String> split = StrUtil.split(str, ',');
|
||||
assertEquals(1, split.size());
|
||||
|
||||
split = StrUtil.splitTrim(str, ',');
|
||||
assertEquals(0, split.size());
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user