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

Method test

src/test/java/test/FestivalTest.java:13–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11 */
12public class FestivalTest {
13 @Test
14 public void test() {
15 Solar solar = Solar.fromYmd(2020, 11, 26);
16 Assert.assertEquals("[感恩节]", solar.getFestivals() + "");
17
18 solar = Solar.fromYmd(2020, 6, 21);
19 Assert.assertEquals("[父亲节]", solar.getFestivals() + "");
20
21 solar = Solar.fromYmd(2021, 5, 9);
22 Assert.assertEquals("[母亲节]", solar.getFestivals() + "");
23
24 solar = Solar.fromYmd(1986, 11, 27);
25 Assert.assertEquals("[感恩节]", solar.getFestivals() + "");
26
27 solar = Solar.fromYmd(1985, 6, 16);
28 Assert.assertEquals("[父亲节]", solar.getFestivals() + "");
29
30 solar = Solar.fromYmd(1984, 5, 13);
31 Assert.assertEquals("[母亲节]", solar.getFestivals() + "");
32 }
33}

Callers

nothing calls this directly

Calls 2

fromYmdMethod · 0.95
getFestivalsMethod · 0.95

Tested by

no test coverage detected