Skip to content

Commit

Permalink
Generated and ran test files
Browse files Browse the repository at this point in the history
  • Loading branch information
havardnyboe committed Feb 24, 2023
1 parent 1e87d83 commit 5387f58
Show file tree
Hide file tree
Showing 23 changed files with 2,598 additions and 22 deletions.
2 changes: 2 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ https://id.wikipedia.org/wiki/Hari_libur_nasional_di_Indonesia
https://ja.wikipedia.org/wiki/%E5%9B%BD%E6%B0%91%E3%81%AE%E7%A5%9D%E6%97%A5
https://lb.wikipedia.org/wiki/Gesetzlech_Feierdeeg_zu_L%C3%ABtzebuerg
https://nl.wikipedia.org/wiki/Feestdagen_in_Nederland
https://no.wikipedia.org/wiki/Allehelgensaften
https://no.wikipedia.org/wiki/Norges_offisielle_flaggdager
https://pt.wikipedia.org/wiki/Cabo_Verde#Feriados
https://pt.wikipedia.org/wiki/Feriados_em_Angola
https://pt.wikipedia.org/wiki/Feriados_no_Brasil
Expand Down
119 changes: 118 additions & 1 deletion test/fixtures/NO-2015.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,24 @@
"rule": "01-01",
"_weekday": "Thu"
},
{
"date": "2015-01-21 00:00:00",
"start": "2015-01-20T23:00:00.000Z",
"end": "2015-01-21T23:00:00.000Z",
"name": "H.K.H. prinsesse Ingrid Alexandra",
"type": "observance",
"rule": "01-21",
"_weekday": "Wed"
},
{
"date": "2015-02-06 00:00:00",
"start": "2015-02-05T23:00:00.000Z",
"end": "2015-02-06T23:00:00.000Z",
"name": "Samefolkets dag",
"type": "observance",
"rule": "02-06",
"_weekday": "Fri"
},
{
"date": "2015-02-08 00:00:00",
"start": "2015-02-07T23:00:00.000Z",
Expand All @@ -17,6 +35,15 @@
"rule": "2nd sunday in February",
"_weekday": "Sun"
},
{
"date": "2015-02-14 00:00:00",
"start": "2015-02-13T23:00:00.000Z",
"end": "2015-02-14T23:00:00.000Z",
"name": "Valentinsdag",
"type": "observance",
"rule": "02-14",
"_weekday": "Sat"
},
{
"date": "2015-02-15 00:00:00",
"start": "2015-02-14T23:00:00.000Z",
Expand All @@ -26,6 +53,33 @@
"rule": "easter -49",
"_weekday": "Sun"
},
{
"date": "2015-02-18 00:00:00",
"start": "2015-02-17T23:00:00.000Z",
"end": "2015-02-18T23:00:00.000Z",
"name": "Askeonsdag",
"type": "observance",
"rule": "easter -46",
"_weekday": "Wed"
},
{
"date": "2015-02-21 00:00:00",
"start": "2015-02-20T23:00:00.000Z",
"end": "2015-02-21T23:00:00.000Z",
"name": "H.M. kong Harald V",
"type": "public",
"rule": "02-21",
"_weekday": "Sat"
},
{
"date": "2015-03-08 00:00:00",
"start": "2015-03-07T23:00:00.000Z",
"end": "2015-03-08T23:00:00.000Z",
"name": "Kvinnedagen",
"type": "observance",
"rule": "03-08",
"_weekday": "Sun"
},
{
"date": "2015-03-29 00:00:00",
"start": "2015-03-28T23:00:00.000Z",
Expand All @@ -35,6 +89,15 @@
"rule": "easter -7",
"_weekday": "Sun"
},
{
"date": "2015-04-01 00:00:00",
"start": "2015-03-31T22:00:00.000Z",
"end": "2015-04-01T22:00:00.000Z",
"name": "Aprilsnarr",
"type": "observance",
"rule": "04-01",
"_weekday": "Wed"
},
{
"date": "2015-04-02 00:00:00",
"start": "2015-04-01T22:00:00.000Z",
Expand Down Expand Up @@ -102,7 +165,7 @@
"date": "2015-05-17 00:00:00",
"start": "2015-05-16T22:00:00.000Z",
"end": "2015-05-17T22:00:00.000Z",
"name": "17. mai",
"name": "Grunnlovsdagen",
"type": "public",
"rule": "05-17",
"_weekday": "Sun"
Expand All @@ -125,6 +188,15 @@
"rule": "easter 50",
"_weekday": "Mon"
},
{
"date": "2015-06-07 00:00:00",
"start": "2015-06-06T22:00:00.000Z",
"end": "2015-06-07T22:00:00.000Z",
"name": "Unionsoppløsningen",
"type": "observance",
"rule": "06-07",
"_weekday": "Sun"
},
{
"date": "2015-06-23 00:00:00",
"start": "2015-06-22T22:00:00.000Z",
Expand All @@ -134,6 +206,51 @@
"rule": "06-23",
"_weekday": "Tue"
},
{
"date": "2015-07-04 00:00:00",
"start": "2015-07-03T22:00:00.000Z",
"end": "2015-07-04T22:00:00.000Z",
"name": "H.M. dronning Sonja",
"type": "observance",
"rule": "07-04",
"_weekday": "Sat"
},
{
"date": "2015-07-20 00:00:00",
"start": "2015-07-19T22:00:00.000Z",
"end": "2015-07-20T22:00:00.000Z",
"name": "H.K.H. kronprins Haakon Magnus",
"type": "observance",
"rule": "07-20",
"_weekday": "Mon"
},
{
"date": "2015-07-29 00:00:00",
"start": "2015-07-28T22:00:00.000Z",
"end": "2015-07-29T22:00:00.000Z",
"name": "Olsok",
"type": "optional",
"rule": "07-29",
"_weekday": "Wed"
},
{
"date": "2015-08-19 00:00:00",
"start": "2015-08-18T22:00:00.000Z",
"end": "2015-08-19T22:00:00.000Z",
"name": "H.K.H. kronprinsesse Mette-Marit",
"type": "observance",
"rule": "08-19",
"_weekday": "Wed"
},
{
"date": "2015-11-01 00:00:00",
"start": "2015-10-31T23:00:00.000Z",
"end": "2015-11-01T23:00:00.000Z",
"name": "Allehelgensaften",
"type": "observance",
"rule": "1st sunday in November",
"_weekday": "Sun"
},
{
"date": "2015-11-08 00:00:00",
"start": "2015-11-07T23:00:00.000Z",
Expand Down
119 changes: 118 additions & 1 deletion test/fixtures/NO-2016.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,24 @@
"rule": "01-01",
"_weekday": "Fri"
},
{
"date": "2016-01-21 00:00:00",
"start": "2016-01-20T23:00:00.000Z",
"end": "2016-01-21T23:00:00.000Z",
"name": "H.K.H. prinsesse Ingrid Alexandra",
"type": "observance",
"rule": "01-21",
"_weekday": "Thu"
},
{
"date": "2016-02-06 00:00:00",
"start": "2016-02-05T23:00:00.000Z",
"end": "2016-02-06T23:00:00.000Z",
"name": "Samefolkets dag",
"type": "observance",
"rule": "02-06",
"_weekday": "Sat"
},
{
"date": "2016-02-07 00:00:00",
"start": "2016-02-06T23:00:00.000Z",
Expand All @@ -17,6 +35,15 @@
"rule": "easter -49",
"_weekday": "Sun"
},
{
"date": "2016-02-10 00:00:00",
"start": "2016-02-09T23:00:00.000Z",
"end": "2016-02-10T23:00:00.000Z",
"name": "Askeonsdag",
"type": "observance",
"rule": "easter -46",
"_weekday": "Wed"
},
{
"date": "2016-02-14 00:00:00",
"start": "2016-02-13T23:00:00.000Z",
Expand All @@ -26,6 +53,33 @@
"rule": "2nd sunday in February",
"_weekday": "Sun"
},
{
"date": "2016-02-14 00:00:00",
"start": "2016-02-13T23:00:00.000Z",
"end": "2016-02-14T23:00:00.000Z",
"name": "Valentinsdag",
"type": "observance",
"rule": "02-14",
"_weekday": "Sun"
},
{
"date": "2016-02-21 00:00:00",
"start": "2016-02-20T23:00:00.000Z",
"end": "2016-02-21T23:00:00.000Z",
"name": "H.M. kong Harald V",
"type": "public",
"rule": "02-21",
"_weekday": "Sun"
},
{
"date": "2016-03-08 00:00:00",
"start": "2016-03-07T23:00:00.000Z",
"end": "2016-03-08T23:00:00.000Z",
"name": "Kvinnedagen",
"type": "observance",
"rule": "03-08",
"_weekday": "Tue"
},
{
"date": "2016-03-20 00:00:00",
"start": "2016-03-19T23:00:00.000Z",
Expand Down Expand Up @@ -71,6 +125,15 @@
"rule": "easter 1",
"_weekday": "Mon"
},
{
"date": "2016-04-01 00:00:00",
"start": "2016-03-31T22:00:00.000Z",
"end": "2016-04-01T22:00:00.000Z",
"name": "Aprilsnarr",
"type": "observance",
"rule": "04-01",
"_weekday": "Fri"
},
{
"date": "2016-05-01 00:00:00",
"start": "2016-04-30T22:00:00.000Z",
Expand Down Expand Up @@ -120,11 +183,20 @@
"date": "2016-05-17 00:00:00",
"start": "2016-05-16T22:00:00.000Z",
"end": "2016-05-17T22:00:00.000Z",
"name": "17. mai",
"name": "Grunnlovsdagen",
"type": "public",
"rule": "05-17",
"_weekday": "Tue"
},
{
"date": "2016-06-07 00:00:00",
"start": "2016-06-06T22:00:00.000Z",
"end": "2016-06-07T22:00:00.000Z",
"name": "Unionsoppløsningen",
"type": "observance",
"rule": "06-07",
"_weekday": "Tue"
},
{
"date": "2016-06-23 00:00:00",
"start": "2016-06-22T22:00:00.000Z",
Expand All @@ -134,6 +206,51 @@
"rule": "06-23",
"_weekday": "Thu"
},
{
"date": "2016-07-04 00:00:00",
"start": "2016-07-03T22:00:00.000Z",
"end": "2016-07-04T22:00:00.000Z",
"name": "H.M. dronning Sonja",
"type": "observance",
"rule": "07-04",
"_weekday": "Mon"
},
{
"date": "2016-07-20 00:00:00",
"start": "2016-07-19T22:00:00.000Z",
"end": "2016-07-20T22:00:00.000Z",
"name": "H.K.H. kronprins Haakon Magnus",
"type": "observance",
"rule": "07-20",
"_weekday": "Wed"
},
{
"date": "2016-07-29 00:00:00",
"start": "2016-07-28T22:00:00.000Z",
"end": "2016-07-29T22:00:00.000Z",
"name": "Olsok",
"type": "optional",
"rule": "07-29",
"_weekday": "Fri"
},
{
"date": "2016-08-19 00:00:00",
"start": "2016-08-18T22:00:00.000Z",
"end": "2016-08-19T22:00:00.000Z",
"name": "H.K.H. kronprinsesse Mette-Marit",
"type": "observance",
"rule": "08-19",
"_weekday": "Fri"
},
{
"date": "2016-11-06 00:00:00",
"start": "2016-11-05T23:00:00.000Z",
"end": "2016-11-06T23:00:00.000Z",
"name": "Allehelgensaften",
"type": "observance",
"rule": "1st sunday in November",
"_weekday": "Sun"
},
{
"date": "2016-11-13 00:00:00",
"start": "2016-11-12T23:00:00.000Z",
Expand Down
Loading

0 comments on commit 5387f58

Please sign in to comment.