mirror of
https://gitee.com/dromara/hutool.git
synced 2025-05-06 21:58:03 +08:00
add test
This commit is contained in:
parent
440091c317
commit
cc9bd54cc8
@ -640,4 +640,12 @@ public class StrUtilTest {
|
||||
final String str = "A5E6005700000000000000000000000000000000000000090D0100000000000001003830";
|
||||
Assert.assertEquals("38", StrUtil.subWithLength(str,-2,2));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void issueI6KKFUTest() {
|
||||
// https://gitee.com/dromara/hutool/issues/I6KKFU
|
||||
final String template = "I''m {0} years old.";
|
||||
final String result = StrUtil.indexedFormat(template, 10);
|
||||
Assert.assertEquals("I'm 10 years old.", result);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user