fix: missing 2020-01-31

fix #73
This commit is contained in:
NateScarlet 2020-09-07 22:33:33 +08:00
parent 8a74a761c8
commit 45ab4d5407
No known key found for this signature in database
GPG Key ID: 5C242793B070309C
2 changed files with 2 additions and 0 deletions

View File

@ -189,6 +189,7 @@ class SentenceParser:
special_cases = {
'延长2020年春节假期至2月2日农历正月初九': [
{"date": date(2020, 1, 31), "isOffDay": True},
{"date": date(2020, 2, 1), "isOffDay": True},
{"date": date(2020, 2, 2), "isOffDay": True},
],

View File

@ -3,6 +3,7 @@
"year": 2020,
"description": "延长2020年春节假期至2月2日农历正月初九星期日2月3日星期一起正常上班。",
"expected": [
{ "date": "2020-01-31", "isOffDay": true },
{ "date": "2020-02-01", "isOffDay": true },
{ "date": "2020-02-02", "isOffDay": true },
{ "date": "2020-02-03", "isOffDay": false }