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

Method test

src/test/java/test/LunarTest.java:19–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

toStringMethod · 0.95
toFullStringMethod · 0.95
getSolarMethod · 0.95
toStringMethod · 0.45
toFullStringMethod · 0.45

Tested by

no test coverage detected