From cbc5d93fcfebcc83726213c451899eb0e6f25b96 Mon Sep 17 00:00:00 2001 From: "jongbong.an" Date: Sun, 6 Oct 2024 15:39:36 +0900 Subject: [PATCH 1/2] added a recent temporary holiday --- ql/time/calendars/southkorea.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ql/time/calendars/southkorea.cpp b/ql/time/calendars/southkorea.cpp index 12d6d517c52..b31ff202af3 100644 --- a/ql/time/calendars/southkorea.cpp +++ b/ql/time/calendars/southkorea.cpp @@ -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) From 64acfbbe2f405b3599a488852f0c313cd1e5de55 Mon Sep 17 00:00:00 2001 From: Luigi Ballabio Date: Mon, 7 Oct 2024 08:19:05 +0200 Subject: [PATCH 2/2] Update expected test results --- test-suite/calendars.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test-suite/calendars.cpp b/test-suite/calendars.cpp index 1c004dd6997..1522f8189d4 100644 --- a/test-suite/calendars.cpp +++ b/test-suite/calendars.cpp @@ -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); @@ -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);