add null edit

This commit is contained in:
Looly
2020-11-15 00:36:07 +08:00
parent bb017d8d08
commit d8fd1e16aa
9 changed files with 374 additions and 18 deletions

View File

@@ -1,5 +1,6 @@
package cn.hutool.core.util;
import cn.hutool.core.lang.Console;
import cn.hutool.core.lang.Dict;
import org.junit.Assert;
import org.junit.Test;
@@ -433,6 +434,14 @@ public class StrUtilTest {
Assert.assertEquals(0, results2.length);
}
@Test
public void subBetweenAllTest3() {
String src1 = "'abc'and'123'";
final String[] strings = StrUtil.subBetweenAll(src1, "'", "'");
Console.log(strings);
}
@Test
public void briefTest() {
String str = RandomUtil.randomString(1000);