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

Method testHideGan

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

Source from the content-addressed store, hash-verified

70 }
71
72 @Test
73 public void testHideGan() {
74 Solar solar = new Solar(2005, 12, 23, 8, 37, 0);
75 Lunar lunar = solar.getLunar();
76 EightChar eightChar = lunar.getEightChar();
77 Assert.assertEquals("年支藏干", "[辛]", eightChar.getYearHideGan().toString());
78 Assert.assertEquals("月支藏干", "[癸]", eightChar.getMonthHideGan().toString());
79 Assert.assertEquals("日支藏干", "[丙, 庚, 戊]", eightChar.getDayHideGan().toString());
80 Assert.assertEquals("时支藏干", "[戊, 乙, 癸]", eightChar.getTimeHideGan().toString());
81 }
82
83 @Test
84 public void testShiShenGan() {

Callers

nothing calls this directly

Calls 7

getLunarMethod · 0.95
getEightCharMethod · 0.95
getYearHideGanMethod · 0.95
getMonthHideGanMethod · 0.95
getDayHideGanMethod · 0.95
getTimeHideGanMethod · 0.95
toStringMethod · 0.45

Tested by

no test coverage detected