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

Method test2

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

Source from the content-addressed store, hash-verified

25 }
26
27 @Test
28 public void test2() {
29 Lunar lunar = new Lunar(2019, 12, 12, 11, 22, 0);
30 System.out.println(lunar.getMonth());
31 System.out.println(lunar.toFullString());
32 System.out.println(lunar.getSolar().toFullString());
33 EightChar eightChar = lunar.getEightChar();
34 Yun yun = eightChar.getYun(1);
35 Assert.assertEquals("起运年数", 0, yun.getStartYear());
36 Assert.assertEquals("起运月数", 1, yun.getStartMonth());
37 Assert.assertEquals("起运天数", 0, yun.getStartDay());
38 Assert.assertEquals("起运阳历", "2020-02-06", yun.getStartSolar().toYmd());
39 }
40
41 @Test
42 public void test3() {

Callers

nothing calls this directly

Calls 11

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