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

Method test3

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

Source from the content-addressed store, hash-verified

39 }
40
41 @Test
42 public void test3() {
43 Solar solar = new Solar(2020, 1, 6, 11, 22, 0);
44 Lunar lunar = solar.getLunar();
45 System.out.println(lunar.getMonth());
46 System.out.println(lunar.toFullString());
47 System.out.println(lunar.getSolar().toFullString());
48 EightChar eightChar = lunar.getEightChar();
49 Yun yun = eightChar.getYun(1);
50 Assert.assertEquals("起运年数", 0, yun.getStartYear());
51 Assert.assertEquals("起运月数", 1, yun.getStartMonth());
52 Assert.assertEquals("起运天数", 0, yun.getStartDay());
53 Assert.assertEquals("起运阳历", "2020-02-06", yun.getStartSolar().toYmd());
54 }
55
56 @Test
57 public void test4() {

Callers

nothing calls this directly

Calls 12

getLunarMethod · 0.95
getMonthMethod · 0.95
toFullStringMethod · 0.95
getSolarMethod · 0.95
getEightCharMethod · 0.95
getYunMethod · 0.95
getStartYearMethod · 0.95
getStartMonthMethod · 0.95
getStartDayMethod · 0.95
getStartSolarMethod · 0.95
toYmdMethod · 0.80
toFullStringMethod · 0.45

Tested by

no test coverage detected