Skip to content

Commit

Permalink
v1.7.0 请勿使用1.6.x版本!请勿使用1.6.x版本!请勿使用1.6.x版本!
Browse files Browse the repository at this point in the history
  • Loading branch information
6tail committed Apr 29, 2024
1 parent b322c7b commit a45d6c2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,3 +175,6 @@

## 1.3.12
1. 修复八字转阳历存在遗漏的问题。

## 1.7.0
1. 请勿使用1.6.x版本!请勿使用1.6.x版本!请勿使用1.6.x版本!
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ lunar是一款无第三方依赖的日历工具,支持公历(阳历)、农历(
## 示例

dependencies:
lunar: ^1.3.12
lunar: ^1.7.0
import 'package:lunar/lunar.dart';
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
6 changes: 6 additions & 0 deletions test/Holiday_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
}

0 comments on commit a45d6c2

Please sign in to comment.