1
0
mirror of synced 2026-10-17 20:16:11 +08:00

v1.3.14 修复八字转阳历存在遗漏的问题。

This commit is contained in:
6tail
2024-03-17 14:00:34 +08:00
parent 0a4d172ef6
commit 701cec10a0
6 changed files with 22 additions and 8 deletions

View File

@@ -530,4 +530,17 @@ public class BaZiTest {
Assert.assertEquals(expected, actual);
}
@Test
public void test31() {
List<Solar> l = Solar.fromBaZi("丁卯","丁未","甲申","乙丑", 1, 1900);
List<String> actual = new ArrayList<String>();
for (Solar solar : l) {
actual.add(solar.toYmdHms());
}
List<String> expected = new ArrayList<String>();
expected.add("1987-08-03 02:00:00");
Assert.assertEquals(expected, actual);
}
}