()
| 13 | public class YunTest { |
| 14 | |
| 15 | @Test |
| 16 | public void test1() { |
| 17 | Solar solar = new Solar(1981, 1, 29, 23, 37, 0); |
| 18 | Lunar lunar = solar.getLunar(); |
| 19 | EightChar eightChar = lunar.getEightChar(); |
| 20 | Yun yun = eightChar.getYun(0); |
| 21 | Assert.assertEquals("起运年数", 8, yun.getStartYear()); |
| 22 | Assert.assertEquals("起运月数", 0, yun.getStartMonth()); |
| 23 | Assert.assertEquals("起运天数", 20, yun.getStartDay()); |
| 24 | Assert.assertEquals("起运阳历", "1989-02-18", yun.getStartSolar().toYmd()); |
| 25 | } |
| 26 | |
| 27 | @Test |
| 28 | public void test2() { |
nothing calls this directly
no test coverage detected