mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix bug
This commit is contained in:
@@ -521,6 +521,14 @@ public class StrUtilTest {
|
||||
Assert.assertEquals("abc", strings[0]);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void subBetweenAllTest4() {
|
||||
String str = "你好:1388681xxxx用户已开通,1877275xxxx用户已开通,无法发送业务开通短信";
|
||||
String[] strings = StrUtil.subBetweenAll(str, "1877275xxxx", ",");
|
||||
Assert.assertEquals(1, strings.length);
|
||||
Assert.assertEquals("用户已开通", strings[0]);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void briefTest() {
|
||||
// case: 1 至 str.length - 1
|
||||
|
Reference in New Issue
Block a user