generated from spatie/package-skeleton-php
-
-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests based on Welsh Tests given same Mondayisation
- Loading branch information
Showing
8 changed files
with
420 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
tests/.pest/snapshots/Countries/NewZealandTest/it_can_calculate_holidays_for_2030.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
[ | ||
{ | ||
"name": "New Year's Day", | ||
"date": "2030-01-01" | ||
}, | ||
{ | ||
"name": "Day after New Year's Day", | ||
"date": "2030-01-02" | ||
}, | ||
{ | ||
"name": "Waitangi Day", | ||
"date": "2030-02-06" | ||
}, | ||
{ | ||
"name": "Good Friday", | ||
"date": "2030-04-19" | ||
}, | ||
{ | ||
"name": "Easter Monday", | ||
"date": "2030-04-22" | ||
}, | ||
{ | ||
"name": "ANZAC Day", | ||
"date": "2030-04-25" | ||
}, | ||
{ | ||
"name": "King's Birthday", | ||
"date": "2030-06-03" | ||
}, | ||
{ | ||
"name": "Matariki", | ||
"date": "2030-06-21" | ||
}, | ||
{ | ||
"name": "Labour Day", | ||
"date": "2030-10-28" | ||
}, | ||
{ | ||
"name": "Christmas Day", | ||
"date": "2030-12-25" | ||
}, | ||
{ | ||
"name": "Boxing Day", | ||
"date": "2030-12-26" | ||
} | ||
] |
46 changes: 46 additions & 0 deletions
46
tests/.pest/snapshots/Countries/NewZealandTest/it_can_calculate_new_zealand_holidays.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
[ | ||
{ | ||
"name": "New Year's Day", | ||
"date": "2024-01-01" | ||
}, | ||
{ | ||
"name": "Day after New Year's Day", | ||
"date": "2024-01-02" | ||
}, | ||
{ | ||
"name": "Waitangi Day", | ||
"date": "2024-02-06" | ||
}, | ||
{ | ||
"name": "Good Friday", | ||
"date": "2024-03-29" | ||
}, | ||
{ | ||
"name": "Easter Monday", | ||
"date": "2024-04-01" | ||
}, | ||
{ | ||
"name": "ANZAC Day", | ||
"date": "2024-04-25" | ||
}, | ||
{ | ||
"name": "King's Birthday", | ||
"date": "2024-06-03" | ||
}, | ||
{ | ||
"name": "Matariki", | ||
"date": "2024-06-28" | ||
}, | ||
{ | ||
"name": "Labour Day", | ||
"date": "2024-10-28" | ||
}, | ||
{ | ||
"name": "Christmas Day", | ||
"date": "2024-12-25" | ||
}, | ||
{ | ||
"name": "Boxing Day", | ||
"date": "2024-12-26" | ||
} | ||
] |
46 changes: 46 additions & 0 deletions
46
...ies/NewZealandTest/it_can_calculate_new_zealand_holidays_if_christmas_is_on_a_friday.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
[ | ||
{ | ||
"name": "New Year's Day (Mondayisation)", | ||
"date": "2028-01-03" | ||
}, | ||
{ | ||
"name": "Day after New Year's Day (Mondayisation)", | ||
"date": "2028-01-04" | ||
}, | ||
{ | ||
"name": "Waitangi Day (Mondayisation)", | ||
"date": "2028-02-07" | ||
}, | ||
{ | ||
"name": "Good Friday", | ||
"date": "2028-04-14" | ||
}, | ||
{ | ||
"name": "Easter Monday", | ||
"date": "2028-04-17" | ||
}, | ||
{ | ||
"name": "ANZAC Day", | ||
"date": "2028-04-25" | ||
}, | ||
{ | ||
"name": "King's Birthday", | ||
"date": "2028-06-05" | ||
}, | ||
{ | ||
"name": "Matariki", | ||
"date": "2028-07-14" | ||
}, | ||
{ | ||
"name": "Labour Day", | ||
"date": "2028-10-23" | ||
}, | ||
{ | ||
"name": "Christmas Day", | ||
"date": "2028-12-25" | ||
}, | ||
{ | ||
"name": "Boxing Day", | ||
"date": "2028-12-26" | ||
} | ||
] |
46 changes: 46 additions & 0 deletions
46
...s/NewZealandTest/it_can_calculate_new_zealand_holidays_if_christmas_is_on_a_saturday.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
[ | ||
{ | ||
"name": "New Year's Day", | ||
"date": "2027-01-01" | ||
}, | ||
{ | ||
"name": "Day after New Year's Day (Mondayisation)", | ||
"date": "2027-01-04" | ||
}, | ||
{ | ||
"name": "Waitangi Day (Mondayisation)", | ||
"date": "2027-02-08" | ||
}, | ||
{ | ||
"name": "Good Friday", | ||
"date": "2027-03-26" | ||
}, | ||
{ | ||
"name": "Easter Monday", | ||
"date": "2027-03-29" | ||
}, | ||
{ | ||
"name": "ANZAC Day (Mondayisation)", | ||
"date": "2027-04-26" | ||
}, | ||
{ | ||
"name": "King's Birthday", | ||
"date": "2027-06-07" | ||
}, | ||
{ | ||
"name": "Matariki", | ||
"date": "2027-06-25" | ||
}, | ||
{ | ||
"name": "Labour Day", | ||
"date": "2027-10-25" | ||
}, | ||
{ | ||
"name": "Christmas Day (Mondayisation)", | ||
"date": "2027-12-27" | ||
}, | ||
{ | ||
"name": "Boxing Day (Mondayisation)", | ||
"date": "2027-12-28" | ||
} | ||
] |
46 changes: 46 additions & 0 deletions
46
...ies/NewZealandTest/it_can_calculate_new_zealand_holidays_if_christmas_is_on_a_sunday.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
[ | ||
{ | ||
"name": "New Year's Day (Mondayisation)", | ||
"date": "2022-01-03" | ||
}, | ||
{ | ||
"name": "Day after New Year's Day (Mondayisation)", | ||
"date": "2022-01-04" | ||
}, | ||
{ | ||
"name": "Waitangi Day (Mondayisation)", | ||
"date": "2022-02-07" | ||
}, | ||
{ | ||
"name": "Good Friday", | ||
"date": "2022-04-15" | ||
}, | ||
{ | ||
"name": "Easter Monday", | ||
"date": "2022-04-18" | ||
}, | ||
{ | ||
"name": "ANZAC Day", | ||
"date": "2022-04-25" | ||
}, | ||
{ | ||
"name": "Queen's Birthday", | ||
"date": "2022-06-06" | ||
}, | ||
{ | ||
"name": "Matariki", | ||
"date": "2022-06-24" | ||
}, | ||
{ | ||
"name": "Labour Day", | ||
"date": "2022-10-24" | ||
}, | ||
{ | ||
"name": "Boxing Day", | ||
"date": "2022-12-26" | ||
}, | ||
{ | ||
"name": "Christmas Day (Mondayisation)", | ||
"date": "2022-12-27" | ||
} | ||
] |
46 changes: 46 additions & 0 deletions
46
...tries/NewZealandTest/it_returns_a_substitute_day_if_new_years_day_falls_on_a_weekend.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
[ | ||
{ | ||
"name": "New Year's Day (Mondayisation)", | ||
"date": "2033-01-03" | ||
}, | ||
{ | ||
"name": "Day after New Year's Day (Mondayisation)", | ||
"date": "2033-01-04" | ||
}, | ||
{ | ||
"name": "Waitangi Day (Mondayisation)", | ||
"date": "2033-02-07" | ||
}, | ||
{ | ||
"name": "Good Friday", | ||
"date": "2033-04-15" | ||
}, | ||
{ | ||
"name": "Easter Monday", | ||
"date": "2033-04-18" | ||
}, | ||
{ | ||
"name": "ANZAC Day", | ||
"date": "2033-04-25" | ||
}, | ||
{ | ||
"name": "King's Birthday", | ||
"date": "2033-06-06" | ||
}, | ||
{ | ||
"name": "Matariki", | ||
"date": "2033-06-24" | ||
}, | ||
{ | ||
"name": "Labour Day", | ||
"date": "2033-10-24" | ||
}, | ||
{ | ||
"name": "Boxing Day", | ||
"date": "2033-12-26" | ||
}, | ||
{ | ||
"name": "Christmas Day (Mondayisation)", | ||
"date": "2033-12-27" | ||
} | ||
] |
Oops, something went wrong.