1
0
mirror of synced 2026-02-04 20:18:01 +08:00

v1.6.2 优化多语言支持。

This commit is contained in:
6tail
2023-05-03 21:10:05 +08:00
parent e9e23ee38f
commit 5b0ed30657
3 changed files with 324 additions and 107 deletions

View File

@@ -181,3 +181,11 @@ test('test11', () => {
test('test12', () => {
expect(Solar.fromYmdHms('1999', '06', '07', '09', '11', '00').getLunar().getEightChar().toString()).toBe('己卯 庚午 庚寅 辛巳');
});
test('流月', () => {
const solar = Solar.fromYmdHms(2023, 5, 3, 9, 0, 0);
const lunar = solar.getLunar();
const eightChar = lunar.getEightChar();
const yun = eightChar.getYun(1);
expect(yun.getDaYun()[0].getLiuNian()[0].getLiuYue()[0].getGanZhi()).toBe('甲寅');
});