forked from plusone/plusone-commons
添加测试用例。
parent
6176f9ab71
commit
d9db0040d6
|
@ -11,13 +11,17 @@ class StrUtilTests {
|
||||||
@Test
|
@Test
|
||||||
void testFillZero() {
|
void testFillZero() {
|
||||||
char c = '=';
|
char c = '=';
|
||||||
|
log.info(StrUtil.fillBefore("123", 6, c));
|
||||||
log.info(StrUtil.fillBefore("1234", 6, c));
|
log.info(StrUtil.fillBefore("1234", 6, c));
|
||||||
log.info(StrUtil.fillBefore("12345", 6, c));
|
log.info(StrUtil.fillBefore("12345", 6, c));
|
||||||
log.info(StrUtil.fillBefore("123456", 6, c));
|
log.info(StrUtil.fillBefore("123456", 6, c));
|
||||||
log.info(StrUtil.fillBefore("1234567", 6, c));
|
log.info(StrUtil.fillBefore("1234567", 6, c));
|
||||||
|
log.info(StrUtil.fillBefore("12345678", 6, c));
|
||||||
|
log.info(StrUtil.fillAfter("123", 6, c));
|
||||||
log.info(StrUtil.fillAfter("1234", 6, c));
|
log.info(StrUtil.fillAfter("1234", 6, c));
|
||||||
log.info(StrUtil.fillAfter("12345", 6, c));
|
log.info(StrUtil.fillAfter("12345", 6, c));
|
||||||
log.info(StrUtil.fillAfter("123456", 6, c));
|
log.info(StrUtil.fillAfter("123456", 6, c));
|
||||||
log.info(StrUtil.fillAfter("1234567", 6, c));
|
log.info(StrUtil.fillAfter("1234567", 6, c));
|
||||||
|
log.info(StrUtil.fillAfter("12345678", 6, c));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue