Skip to content

Commit

Permalink
Add special holiday 2 Oct 2023 for Korea (#1793)
Browse files Browse the repository at this point in the history
  • Loading branch information
lballabio authored Sep 22, 2023
2 parents fd99a8e + 43d9613 commit ac9d996
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions ql/time/calendars/southkorea.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ namespace QuantLib {
|| (d == 14 && m == August && y == 2015)
// Special temporary holiday
|| (d == 17 && m == August && y == 2020)
|| (d == 2 && m == October && y == 2023)

// Harvest Moon Day
|| ((d == 27 || d == 28 || d == 29) && m == September && y == 2004)
Expand Down
2 changes: 2 additions & 0 deletions test-suite/calendars.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1721,6 +1721,7 @@ void CalendarTest::testSouthKoreanSettlement() {
expectedHol.emplace_back(28, September, 2023);
expectedHol.emplace_back(29, September, 2023);
// expectedHol.emplace_back(30, September, 2023); // Saturday
expectedHol.emplace_back(2, October, 2023);
expectedHol.emplace_back(3, October, 2023);
expectedHol.emplace_back(9, October, 2023);
expectedHol.emplace_back(25, December, 2023);
Expand Down Expand Up @@ -2467,6 +2468,7 @@ void CalendarTest::testKoreaStockExchange() {
expectedHol.emplace_back(28, September, 2023);
expectedHol.emplace_back(29, September, 2023);
// expectedHol.emplace_back(30, September, 2023); // Saturday
expectedHol.emplace_back(2, October, 2023);
expectedHol.emplace_back(3, October, 2023);
expectedHol.emplace_back(9, October, 2023);
expectedHol.emplace_back(25, December, 2023);
Expand Down

0 comments on commit ac9d996

Please sign in to comment.