mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix date bug
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package cn.hutool.core.date;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
@@ -77,4 +78,11 @@ public class ChineseDateTest {
|
||||
chineseDate = new ChineseDate(2020,4,15);
|
||||
Assert.assertEquals("闰四月", chineseDate.getChineseMonth());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getFestivalsTest(){
|
||||
// issue#I1XHSF@Gitee,2023-01-20对应农历腊月29,非除夕
|
||||
ChineseDate chineseDate = new ChineseDate(DateUtil.parseDate("2023-01-20"));
|
||||
Assert.assertTrue(StrUtil.isEmpty(chineseDate.getFestivals()));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user