From 82782d40d0503df72275bc0f0941b86b9c98f9c5 Mon Sep 17 00:00:00 2001 From: Doke Date: Sat, 30 Dec 2023 15:51:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=BANumberWordFormatter.java?= =?UTF-8?q?=E6=96=B0=E5=A2=9ETrillion=E5=8D=95=E4=BD=8D=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=8D=95=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../test/java/cn/hutool/core/convert/NumberWordFormatTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hutool-core/src/test/java/cn/hutool/core/convert/NumberWordFormatTest.java b/hutool-core/src/test/java/cn/hutool/core/convert/NumberWordFormatTest.java index 802d621c4..07d7e1563 100644 --- a/hutool-core/src/test/java/cn/hutool/core/convert/NumberWordFormatTest.java +++ b/hutool-core/src/test/java/cn/hutool/core/convert/NumberWordFormatTest.java @@ -12,6 +12,9 @@ public class NumberWordFormatTest { String format2 = NumberWordFormatter.format("2100.00"); Assert.assertEquals("TWO THOUSAND ONE HUNDRED AND CENTS ONLY", format2); + + String format3 = NumberWordFormatter.format("1234567890123.12"); + Assert.assertEquals("ONE TRILLION TWO HUNDRED AND THIRTY FOUR BILLION FIVE HUNDRED AND SIXTY SEVEN MILLION EIGHT HUNDRED AND NINETY THOUSAND ONE HUNDRED AND TWENTY THREE AND CENTS TWELVE ONLY", format3); } @Test