MCPcopy Create free account
hub / github.com/6tail/lunar-java / test5

Method test5

src/test/java/test/YunTest.java:65–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63 }
64
65 @Test
66 public void test5() {
67 Solar solar = new Solar(2022, 3, 9, 20, 51, 0);
68 Lunar lunar = solar.getLunar();
69 EightChar eightChar = lunar.getEightChar();
70 Yun yun = eightChar.getYun(1, 2);
71 Assert.assertEquals("起运年数", 8, yun.getStartYear());
72 Assert.assertEquals("起运月数", 9, yun.getStartMonth());
73 Assert.assertEquals("起运天数", 2, yun.getStartDay());
74 Assert.assertEquals("起运阳历", "2030-12-12", yun.getStartSolar().toYmd());
75 }
76
77 @Test
78 public void test6() {

Callers

nothing calls this directly

Calls 8

getLunarMethod · 0.95
getEightCharMethod · 0.95
getYunMethod · 0.95
getStartYearMethod · 0.95
getStartMonthMethod · 0.95
getStartDayMethod · 0.95
getStartSolarMethod · 0.95
toYmdMethod · 0.80

Tested by

no test coverage detected