Skip to content

Commit

Permalink
added a recent temporary holiday (#2086)
Browse files Browse the repository at this point in the history
  • Loading branch information
lballabio authored Oct 7, 2024
2 parents a5d2197 + 64acfbb commit 3d27c6b
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 @@ -206,6 +206,7 @@ namespace QuantLib {
// Special temporary holiday
|| (d == 17 && m == August && y == 2020)
|| (d == 2 && m == October && y == 2023)
|| (d == 1 && m == October && y == 2024)

// 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 @@ -1770,6 +1770,7 @@ BOOST_AUTO_TEST_CASE(testSouthKoreanSettlement) {
expectedHol.emplace_back(16, September, 2024);
expectedHol.emplace_back(17, September, 2024);
expectedHol.emplace_back(18, September, 2024);
expectedHol.emplace_back(1, October, 2024);
expectedHol.emplace_back(3, October, 2024);
expectedHol.emplace_back(9, October, 2024);
expectedHol.emplace_back(25, December, 2024);
Expand Down Expand Up @@ -2518,6 +2519,7 @@ BOOST_AUTO_TEST_CASE(testKoreaStockExchange) {
expectedHol.emplace_back(16, September, 2024);
expectedHol.emplace_back(17, September, 2024);
expectedHol.emplace_back(18, September, 2024);
expectedHol.emplace_back(1, October, 2024);
expectedHol.emplace_back(3, October, 2024);
expectedHol.emplace_back(9, October, 2024);
expectedHol.emplace_back(25, December, 2024);
Expand Down

0 comments on commit 3d27c6b

Please sign in to comment.