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

Method testGanZhi

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

Source from the content-addressed store, hash-verified

16public class BaZiTest {
17
18 @Test
19 public void testGanZhi() {
20 Solar solar = new Solar(2005, 12, 23, 8, 37, 0);
21 Lunar lunar = solar.getLunar();
22 EightChar eightChar = lunar.getEightChar();
23 Assert.assertEquals("年柱", "乙酉", eightChar.getYear());
24 Assert.assertEquals("月柱", "戊子", eightChar.getMonth());
25 Assert.assertEquals("日柱", "辛巳", eightChar.getDay());
26 Assert.assertEquals("时柱", "壬辰", eightChar.getTime());
27 }
28
29 @Test
30 public void testGanZhi2() {

Callers

nothing calls this directly

Calls 6

getLunarMethod · 0.95
getEightCharMethod · 0.95
getYearMethod · 0.95
getMonthMethod · 0.95
getDayMethod · 0.95
getTimeMethod · 0.95

Tested by

no test coverage detected