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
d86b643412
commit
d27d2d54aa
@ -5,6 +5,16 @@ import org.junit.Test;
|
|||||||
|
|
||||||
public class NumberChineseFormatterTest {
|
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
|
@Test
|
||||||
public void formatThousandLongTest(){
|
public void formatThousandLongTest(){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user