This commit is contained in:
Looly 2024-07-31 00:05:58 +08:00
parent 6e662d7e6d
commit 8ae3a87174

View File

@ -1,10 +1,17 @@
package cn.hutool.core.util;
import org.junit.Assert;
import org.junit.Test;
import java.util.List;
public class Issue3660Test {
@Test
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());
}
}