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

Method test19

src/test/java/test/GanZhiTest.java:336–352  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

334 }
335
336 @Test
337 public void test19() {
338 Solar solar = new Solar(2022,4,6,20,18,0);
339 Lunar lunar = solar.getLunar();
340 Assert.assertEquals("壬寅",lunar.getYearInGanZhi());
341 Assert.assertEquals("壬寅",lunar.getYearInGanZhiByLiChun());
342 Assert.assertEquals("壬寅",lunar.getYearInGanZhiExact());
343
344 Assert.assertEquals("甲辰",lunar.getMonthInGanZhi());
345 Assert.assertEquals("甲辰",lunar.getMonthInGanZhiExact());
346
347 Assert.assertEquals("己丑",lunar.getDayInGanZhi());
348 Assert.assertEquals("己丑",lunar.getDayInGanZhiExact());
349 Assert.assertEquals("己丑",lunar.getDayInGanZhiExact2());
350
351 Assert.assertEquals("甲戌",lunar.getTimeInGanZhi());
352 }
353
354}

Callers

nothing calls this directly

Calls 10

getLunarMethod · 0.95
getYearInGanZhiMethod · 0.95
getYearInGanZhiExactMethod · 0.95
getMonthInGanZhiMethod · 0.95
getMonthInGanZhiExactMethod · 0.95
getDayInGanZhiMethod · 0.95
getDayInGanZhiExactMethod · 0.95
getDayInGanZhiExact2Method · 0.95
getTimeInGanZhiMethod · 0.95

Tested by

no test coverage detected