v1.3.9 修复星期错误的问题。
This commit is contained in:
@@ -77,7 +77,7 @@ public class BaZiTestNew {
|
||||
public void test7() {
|
||||
Solar solar = new Solar(2020, 5, 26, 23, 43, 0);
|
||||
Lunar lunar = solar.getLunar();
|
||||
//庚子, 辛巳, 庚午, 丙子]
|
||||
// [庚子, 辛巳, 庚午, 丙子]
|
||||
System.out.println(lunar.getEightChar());
|
||||
}
|
||||
|
||||
|
||||
@@ -97,4 +97,16 @@ public class WeekTest {
|
||||
Assert.assertEquals(3, solar.getWeek());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test10(){
|
||||
Assert.assertEquals(6, Solar.fromYmd(1961, 9, 30).getWeek());
|
||||
Assert.assertEquals(6, Solar.fromYmdHms(1961, 9, 30, 23, 59, 59).getWeek());
|
||||
Assert.assertEquals(6, Solar.fromYmdHms(1961, 9, 30, 20, 0, 0).getWeek());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test11(){
|
||||
Assert.assertEquals(3, Solar.fromYmdHms(2021, 9, 15, 20, 0, 0).getWeek());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user