From d9db0040d611b60d75964eced3db958c5981dae6 Mon Sep 17 00:00:00 2001 From: ZhouXY108 Date: Tue, 30 May 2023 10:17:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B5=8B=E8=AF=95=E7=94=A8?= =?UTF-8?q?=E4=BE=8B=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/xyz/zhouxy/plusone/commons/util/StrUtilTests.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/test/java/xyz/zhouxy/plusone/commons/util/StrUtilTests.java b/src/test/java/xyz/zhouxy/plusone/commons/util/StrUtilTests.java index 7ced2dc..7096657 100644 --- a/src/test/java/xyz/zhouxy/plusone/commons/util/StrUtilTests.java +++ b/src/test/java/xyz/zhouxy/plusone/commons/util/StrUtilTests.java @@ -11,13 +11,17 @@ class StrUtilTests { @Test void testFillZero() { char c = '='; + log.info(StrUtil.fillBefore("123", 6, c)); log.info(StrUtil.fillBefore("1234", 6, c)); log.info(StrUtil.fillBefore("12345", 6, c)); log.info(StrUtil.fillBefore("123456", 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("12345", 6, c)); log.info(StrUtil.fillAfter("123456", 6, c)); log.info(StrUtil.fillAfter("1234567", 6, c)); + log.info(StrUtil.fillAfter("12345678", 6, c)); } }