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

Method test1

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

Source from the content-addressed store, hash-verified

13public class YunTest {
14
15 @Test
16 public void test1() {
17 Solar solar = new Solar(1981, 1, 29, 23, 37, 0);
18 Lunar lunar = solar.getLunar();
19 EightChar eightChar = lunar.getEightChar();
20 Yun yun = eightChar.getYun(0);
21 Assert.assertEquals("起运年数", 8, yun.getStartYear());
22 Assert.assertEquals("起运月数", 0, yun.getStartMonth());
23 Assert.assertEquals("起运天数", 20, yun.getStartDay());
24 Assert.assertEquals("起运阳历", "1989-02-18", yun.getStartSolar().toYmd());
25 }
26
27 @Test
28 public void test2() {

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