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,6 +1,7 @@
|
|||||||
package cn.hutool.core.util;
|
package cn.hutool.core.util;
|
||||||
|
|
||||||
import cn.hutool.core.collection.CollectionUtil;
|
import cn.hutool.core.collection.CollectionUtil;
|
||||||
|
import cn.hutool.core.lang.Console;
|
||||||
import cn.hutool.core.lang.PatternPool;
|
import cn.hutool.core.lang.PatternPool;
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
@@ -155,4 +156,11 @@ public class ReUtilTest {
|
|||||||
Assert.assertEquals("168", allGroups.get(1));
|
Assert.assertEquals("168", allGroups.get(1));
|
||||||
Assert.assertEquals("1", allGroups.get(2));
|
Assert.assertEquals("1", allGroups.get(2));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void matchTest(){
|
||||||
|
final boolean match = ReUtil.isMatch(
|
||||||
|
"(.+?)省(.+?)市(.+?)区", "广东省深圳市南山区");
|
||||||
|
Console.log(match);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user