mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
add test
This commit is contained in:
parent
c07a7657ff
commit
045de55b5c
@ -365,7 +365,10 @@ public class ChineseNumberFormatterTest {
|
||||
|
||||
@Test
|
||||
void issueIAZ8UBTest() {
|
||||
final String format = ChineseNumberFormatter.of().setUseTraditional(true).format(9810005022.12D);
|
||||
String format = ChineseNumberFormatter.of().setUseTraditional(true).format(9810005022.12D);
|
||||
assertEquals("玖拾捌亿壹仟万零伍仟零贰拾贰点壹贰", format);
|
||||
|
||||
format = ChineseNumberFormatter.of().setMoneyMode(true).setUseTraditional(true).format(9810005022.12D);
|
||||
assertEquals("玖拾捌亿壹仟万零伍仟零贰拾贰元壹角贰分", format);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user