mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
add test
This commit is contained in:
parent
503df65777
commit
be39341b81
@ -215,4 +215,17 @@ public class ReUtilTest {
|
|||||||
public void issueI6GIMTTest(){
|
public void issueI6GIMTTest(){
|
||||||
Assert.assertEquals(StrUtil.EMPTY, ReUtil.delAll("[\\s]*", " "));
|
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…
x
Reference in New Issue
Block a user