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); + }); }