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