diff --git a/hutool-core/src/test/java/cn/hutool/core/convert/NumberChineseFormatterTest.java b/hutool-core/src/test/java/cn/hutool/core/convert/NumberChineseFormatterTest.java index 5dc83a714..b55bbcf6e 100644 --- a/hutool-core/src/test/java/cn/hutool/core/convert/NumberChineseFormatterTest.java +++ b/hutool-core/src/test/java/cn/hutool/core/convert/NumberChineseFormatterTest.java @@ -5,6 +5,16 @@ import org.junit.Test; public class NumberChineseFormatterTest { + @Test + public void formatThousandTest(){ + String f = NumberChineseFormatter.formatThousand(10, false); + Assert.assertEquals("十", f); + f = NumberChineseFormatter.formatThousand(11, false); + Assert.assertEquals("十一", f); + f = NumberChineseFormatter.formatThousand(19, false); + Assert.assertEquals("十九", f); + } + // 测试千 @Test public void formatThousandLongTest(){