refactor: replace SentenceParser._parse_special with pre-parsed papers

This commit is contained in:
NateScarlet
2022-04-20 20:27:51 +08:00
parent 617a8ebd6e
commit 78b4552627
5 changed files with 18 additions and 43 deletions

View File

@@ -1,14 +1,4 @@
[
{
"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 }
]
},
{
"year": 2019,
"description": "2018年12月30日至2019年1月1日放假调休共3天。2018年12月29日星期六上班。",