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
503df65777
commit
be39341b81
@ -215,4 +215,17 @@ public class ReUtilTest {
|
||||
public void issueI6GIMTTest(){
|
||||
Assert.assertEquals(StrUtil.EMPTY, ReUtil.delAll("[\\s]*", " "));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void issueI9T1TGTest() {
|
||||
String regex = "^model";
|
||||
String content = "model-v";
|
||||
String result = ReUtil.get(regex, content, 0);
|
||||
Assert.assertEquals("model", result);
|
||||
|
||||
regex = "^model.*?";
|
||||
content = "model-v";
|
||||
boolean match = ReUtil.isMatch(regex, content);
|
||||
Assert.assertTrue(match);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user