mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-08-18 20:38:02 +08:00
add test
This commit is contained in:
@@ -465,4 +465,10 @@ public class StrUtilTest {
|
||||
Assert.assertTrue(StrUtil.startWith(a, b));
|
||||
Assert.assertFalse(StrUtil.startWithIgnoreEquals(a, b));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void indexedFormatTest() {
|
||||
final String ret = StrUtil.indexedFormat("this is {0} for {1}", "a", 1000);
|
||||
Assert.assertEquals("this is a for 1,000", ret);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user