v1.3.6 中元节改为农历七月十五;修复Solar的nextMonth超期问题。
This commit is contained in:
@@ -171,4 +171,28 @@ public class SolarTest {
|
||||
Assert.assertEquals("1582-09-29", solar.next(-6).toYmd());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test27(){
|
||||
Solar solar = Solar.fromYmd(2023, 8, 31);
|
||||
Assert.assertEquals("2023-09-30", solar.nextMonth(1).toYmd());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test28(){
|
||||
Solar solar = Solar.fromYmd(2023, 8, 31);
|
||||
Assert.assertEquals("2023-10-31", solar.nextMonth(2).toYmd());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test29(){
|
||||
Solar solar = Solar.fromYmd(2023, 8, 31);
|
||||
Assert.assertEquals("2025-08-31", solar.nextYear(2).toYmd());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test30(){
|
||||
Solar solar = Solar.fromYmd(2023, 8, 31);
|
||||
Assert.assertEquals("2024-02-29", solar.nextMonth(6).toYmd());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user