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

Method testBaZi2Solar

src/test/java/test/BaZiTest.java:253–265  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

251 }
252
253 @Test
254 public void testBaZi2Solar() {
255 List<Solar> l = Solar.fromBaZi("丙辰","丁酉","丙子","甲午");
256 List<String> actual = new ArrayList<String>();
257 for (Solar solar : l) {
258 actual.add(solar.toYmdHms());
259 }
260
261 List<String> expected = new ArrayList<String>();
262 expected.add("1916-10-06 12:00:00");
263 expected.add("1976-09-21 12:00:00");
264 Assert.assertEquals(expected, actual);
265 }
266
267 @Test
268 public void testBaZi2Solar1() {

Callers

nothing calls this directly

Calls 2

fromBaZiMethod · 0.95
toYmdHmsMethod · 0.80

Tested by

no test coverage detected