v1.2.3 修复除夕错误;代码优化。
This commit is contained in:
@@ -125,6 +125,31 @@ public class LunarTest {
|
||||
Assert.assertEquals("2020-01-06",lunar.getSolar().toString());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test18(){
|
||||
Lunar lunar = new Lunar(2021,12,29);
|
||||
Assert.assertEquals("除夕",lunar.getFestivals().get(0));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test19(){
|
||||
Lunar lunar = new Lunar(2020,12,30);
|
||||
Assert.assertEquals("除夕",lunar.getFestivals().get(0));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test20(){
|
||||
Lunar lunar = new Lunar(2020,12,29);
|
||||
Assert.assertEquals(0,lunar.getFestivals().size());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test21(){
|
||||
Solar solar = Solar.fromYmd(2022, 1, 31);
|
||||
Lunar lunar = solar.getLunar();
|
||||
Assert.assertEquals("除夕",lunar.getFestivals().get(0));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNext(){
|
||||
Solar solar = new Solar(2020,1,10,12,0,0);
|
||||
|
||||
Reference in New Issue
Block a user