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

Method testBaziShiShenZhi

src/test/java/sample/BaZiTest.java:109–127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

107 }
108
109 @Test
110 public void testBaziShiShenZhi() {
111 Solar solar = new Solar(2020,1,1,22,35,0);
112 Lunar lunar = solar.getLunar();
113 //[己亥, 丙子, 癸卯, 癸亥]
114 System.out.println(lunar.getBaZi());
115 //[七杀, 正财, 日主, 比肩]
116 System.out.println(lunar.getBaZiShiShenGan());
117 //[劫财, 比肩, 食神, 劫财]
118 System.out.println(lunar.getBaZiShiShenZhi());
119 //[劫财, 伤官]
120 System.out.println(lunar.getBaZiShiShenYearZhi());
121 //[比肩]
122 System.out.println(lunar.getBaZiShiShenMonthZhi());
123 //[食神]
124 System.out.println(lunar.getBaZiShiShenDayZhi());
125 //[劫财, 伤官]
126 System.out.println(lunar.getBaZiShiShenTimeZhi());
127 }
128
129}

Callers

nothing calls this directly

Calls 8

getLunarMethod · 0.95
getBaZiMethod · 0.95
getBaZiShiShenGanMethod · 0.95
getBaZiShiShenZhiMethod · 0.95
getBaZiShiShenYearZhiMethod · 0.95
getBaZiShiShenDayZhiMethod · 0.95
getBaZiShiShenTimeZhiMethod · 0.95

Tested by

no test coverage detected