mirror of
https://gitee.com/dromara/hutool.git
synced 2025-06-28 13:34:09 +08:00
add test
This commit is contained in:
parent
85feecc9e9
commit
aedda45c5f
@ -0,0 +1,16 @@
|
|||||||
|
package cn.hutool.core.date;
|
||||||
|
|
||||||
|
import cn.hutool.core.lang.Console;
|
||||||
|
import org.junit.Assert;
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
public class Issue3348Test {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void formatChineseDateTest() {
|
||||||
|
final String formatChineseDate = DateUtil.formatChineseDate(
|
||||||
|
DateUtil.parse("2023-10-23"), true, false);
|
||||||
|
Console.log(formatChineseDate);
|
||||||
|
Assert.assertEquals("二〇二三年十月二十三日", formatChineseDate);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user