Skip to content

Commit

Permalink
Merge pull request #124 from rubda/ref-swedish-holidays
Browse files Browse the repository at this point in the history
Ref swedish holidays
  • Loading branch information
rickar authored Jan 12, 2024
2 parents e499ded + bcd4284 commit 846c8d3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions v2/se/se_holidays.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ var (
AnnandagPask = aa.EasterMonday.Clone(&cal.Holiday{Name: "Annandag påsk", Type: cal.ObservancePublic})

// ForstaMaj represents Labour Day on 1-May
ForstaMaj = aa.WorkersDay.Clone(&cal.Holiday{Name: "Första Maj", Type: cal.ObservancePublic})
ForstaMaj = aa.WorkersDay.Clone(&cal.Holiday{Name: "Första maj", Type: cal.ObservancePublic})

// KristiHimmelfardsdag represents Ascension Day on the 39th day after Easter
KristiHimmelfardsdag = aa.AscensionDay.Clone(&cal.Holiday{Name: "Kristi himmelsfärds dag", Type: cal.ObservancePublic})
// KristiHimmelsfardsdag represents Ascension Day on the 39th day after Easter
KristiHimmelsfardsdag = aa.AscensionDay.Clone(&cal.Holiday{Name: "Kristi himmelsfärdsdag", Type: cal.ObservancePublic})

// Pingstdagen represents Pentecost Sunday on the 49th day after Easter
Pingstdagen = aa.Pentecost.Clone(&cal.Holiday{Name: "Pingstdagen", Type: cal.ObservancePublic})
Expand Down Expand Up @@ -108,7 +108,7 @@ var (
Langfredagen,
AnnandagPask,
ForstaMaj,
KristiHimmelfardsdag,
KristiHimmelsfardsdag,
Nationaldagen,
Midsommarafton,
Midsommardagen,
Expand Down
18 changes: 9 additions & 9 deletions v2/se/se_holidays_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,15 @@ func TestHolidays(t *testing.T) {
{ForstaMaj, 2022, d(2022, 5, 1), d(2022, 5, 1)},
{ForstaMaj, 2023, d(2023, 5, 1), d(2023, 5, 1)},

{KristiHimmelfardsdag, 2015, d(2015, 5, 14), d(2015, 5, 14)},
{KristiHimmelfardsdag, 2016, d(2016, 5, 5), d(2016, 5, 5)},
{KristiHimmelfardsdag, 2017, d(2017, 5, 25), d(2017, 5, 25)},
{KristiHimmelfardsdag, 2018, d(2018, 5, 10), d(2018, 5, 10)},
{KristiHimmelfardsdag, 2019, d(2019, 5, 30), d(2019, 5, 30)},
{KristiHimmelfardsdag, 2020, d(2020, 5, 21), d(2020, 5, 21)},
{KristiHimmelfardsdag, 2021, d(2021, 5, 13), d(2021, 5, 13)},
{KristiHimmelfardsdag, 2022, d(2022, 5, 26), d(2022, 5, 26)},
{KristiHimmelfardsdag, 2023, d(2023, 5, 18), d(2023, 5, 18)},
{KristiHimmelsfardsdag, 2015, d(2015, 5, 14), d(2015, 5, 14)},
{KristiHimmelsfardsdag, 2016, d(2016, 5, 5), d(2016, 5, 5)},
{KristiHimmelsfardsdag, 2017, d(2017, 5, 25), d(2017, 5, 25)},
{KristiHimmelsfardsdag, 2018, d(2018, 5, 10), d(2018, 5, 10)},
{KristiHimmelsfardsdag, 2019, d(2019, 5, 30), d(2019, 5, 30)},
{KristiHimmelsfardsdag, 2020, d(2020, 5, 21), d(2020, 5, 21)},
{KristiHimmelsfardsdag, 2021, d(2021, 5, 13), d(2021, 5, 13)},
{KristiHimmelsfardsdag, 2022, d(2022, 5, 26), d(2022, 5, 26)},
{KristiHimmelsfardsdag, 2023, d(2023, 5, 18), d(2023, 5, 18)},

{Pingstdagen, 2015, d(2015, 5, 24), d(2015, 5, 24)},
{Pingstdagen, 2016, d(2016, 5, 15), d(2016, 5, 15)},
Expand Down

0 comments on commit 846c8d3

Please sign in to comment.