1
0
mirror of synced 2026-10-14 10:36:22 +08:00

v1.2.7 修复儒略日转阳历秒数为60的错误。

This commit is contained in:
6tail
2021-10-20 20:46:42 +08:00
parent fc0a6291d1
commit a783dbd93f
5 changed files with 26 additions and 49 deletions

View File

@@ -173,4 +173,17 @@ public class JieQiTest {
Assert.assertEquals("冬至", lunar.getPrevQi().getName());
Assert.assertEquals("冬至", lunar.getPrevJieQi().getName());
}
@Test
public void test7() {
Lunar lunar = Lunar.fromYmd(2012, 9, 1);
Assert.assertEquals("2012-09-07 13:29:00", lunar.getJieQiTable().get("白露").toYmdHms());
}
@Test
public void test8() {
Lunar lunar = Lunar.fromYmd(2050, 12, 1);
Assert.assertEquals("2050-12-07 06:41:00", lunar.getJieQiTable().get("大雪").toYmdHms());
}
}