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

Method test

src/test/java/test/SolarTest.java:16–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14public class SolarTest {
15
16 @Test
17 public void test(){
18 Solar date = new Solar(2019,5,1);
19 Assert.assertEquals("2019-05-01",date.toString());
20 Assert.assertEquals("2019-05-01 00:00:00 星期三 (劳动节) 金牛座",date.toFullString());
21 Assert.assertEquals("二〇一九年三月廿七",date.getLunar().toString());
22 Assert.assertEquals("二〇一九年三月廿七 己亥(猪)年 戊辰(龙)月 戊戌(狗)日 子(鼠)时 纳音[平地木 大林木 平地木 桑柘木] 星期三 西方白虎 星宿[参水猿](吉) 彭祖百忌[戊不受田田主不祥 戌不吃犬作怪上床] 喜神方位[巽](东南) 阳贵神方位[艮](东北) 阴贵神方位[坤](西南) 福神方位[艮](东北) 财神方位[坎](正北) 冲[(壬辰)龙] 煞[北]",date.getLunar().toFullString());
23 }
24
25 @Test
26 public void test1(){

Callers

nothing calls this directly

Calls 5

toStringMethod · 0.95
toFullStringMethod · 0.95
getLunarMethod · 0.95
toStringMethod · 0.45
toFullStringMethod · 0.45

Tested by

no test coverage detected