From a45d6c23d9d666a9317b2f791e489f031f043764 Mon Sep 17 00:00:00 2001 From: 6tail <6tail@6tail.cn> Date: Mon, 29 Apr 2024 21:49:26 +0800 Subject: [PATCH] =?UTF-8?q?v1.7.0=20=E8=AF=B7=E5=8B=BF=E4=BD=BF=E7=94=A81.?= =?UTF-8?q?6.x=E7=89=88=E6=9C=AC=EF=BC=81=E8=AF=B7=E5=8B=BF=E4=BD=BF?= =?UTF-8?q?=E7=94=A81.6.x=E7=89=88=E6=9C=AC=EF=BC=81=E8=AF=B7=E5=8B=BF?= =?UTF-8?q?=E4=BD=BF=E7=94=A81.6.x=E7=89=88=E6=9C=AC=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 3 +++ README.md | 2 +- pubspec.yaml | 2 +- test/Holiday_test.dart | 6 ++++++ 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ab2c867..509c303 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -175,3 +175,6 @@ ## 1.3.12 1. 修复八字转阳历存在遗漏的问题。 + +## 1.7.0 +1. 请勿使用1.6.x版本!请勿使用1.6.x版本!请勿使用1.6.x版本! diff --git a/README.md b/README.md index 631a9b7..2700dcf 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ lunar是一款无第三方依赖的日历工具,支持公历(阳历)、农历( ## 示例 dependencies: - lunar: ^1.3.12 + lunar: ^1.7.0 import 'package:lunar/lunar.dart'; diff --git a/pubspec.yaml b/pubspec.yaml index dee7e19..fd24d4c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: lunar description: a calendar library for Solar and Chinese Lunar -version: 1.3.12 +version: 1.7.0 homepage: https://github.com/6tail/lunar-flutter environment: diff --git a/test/Holiday_test.dart b/test/Holiday_test.dart index a5fa624..95a33e4 100644 --- a/test/Holiday_test.dart +++ b/test/Holiday_test.dart @@ -10,4 +10,10 @@ void main() { holiday = HolidayUtil.getHoliday('2010-01-01'); expect(holiday, null); }); + + test('5.1', () { + Holiday? holiday = HolidayUtil.getHoliday('2024-05-05'); + expect(holiday!.getName(), '劳动节'); + expect(holiday.isWork(), false); + }); }