mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add test
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package cn.hutool.core.convert;
|
||||
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
@@ -356,4 +357,10 @@ public class NumberChineseFormatterTest {
|
||||
final String format = NumberChineseFormatter.format(new BigDecimal("3.1415926"), false, false);
|
||||
assertEquals("三点一四一五九二六", format);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void issue3986Test() {
|
||||
final String format = NumberChineseFormatter.format(100000.0, true, true);
|
||||
Assertions.assertEquals("壹拾万元整", format);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user