From 23b94c3f7680cad17cd067e36d18e1e06c8fb9e0 Mon Sep 17 00:00:00 2001 From: siddharthmehrotra Date: Wed, 8 Nov 2023 13:15:55 +0800 Subject: [PATCH 1/4] Migrated marketmodel.cpp --- test-suite/CMakeLists.txt | 1 - test-suite/Makefile.am | 1 - test-suite/marketmodel.cpp | 1626 ++++++++++++-------------- test-suite/marketmodel.hpp | 61 - test-suite/quantlibtestsuite.cpp | 10 - test-suite/testsuite.vcxproj | 1 - test-suite/testsuite.vcxproj.filters | 3 - 7 files changed, 760 insertions(+), 943 deletions(-) delete mode 100644 test-suite/marketmodel.hpp diff --git a/test-suite/CMakeLists.txt b/test-suite/CMakeLists.txt index bcda36b2ebd..77be2c64b24 100644 --- a/test-suite/CMakeLists.txt +++ b/test-suite/CMakeLists.txt @@ -175,7 +175,6 @@ set(QL_TEST_SOURCES ) set(QL_TEST_HEADERS - marketmodel.hpp paralleltestrunner.hpp preconditions.hpp quantlibglobalfixture.hpp diff --git a/test-suite/Makefile.am b/test-suite/Makefile.am index b144e06f64c..c453c4bb92d 100644 --- a/test-suite/Makefile.am +++ b/test-suite/Makefile.am @@ -175,7 +175,6 @@ QL_TEST_SRCS = \ zerocouponswap.cpp QL_TEST_HDRS = \ - marketmodel.hpp \ preconditions.hpp \ quantlibglobalfixture.hpp \ swaptionvolstructuresutilities.hpp \ diff --git a/test-suite/marketmodel.cpp b/test-suite/marketmodel.cpp index 861e6e1404b..698a4fab96c 100644 --- a/test-suite/marketmodel.cpp +++ b/test-suite/marketmodel.cpp @@ -22,7 +22,8 @@ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the license for more details. */ -#include "marketmodel.hpp" +#include "preconditions.hpp" +#include "toplevelfixture.hpp" #include "utilities.hpp" #include #include @@ -116,227 +117,230 @@ using namespace boost::unit_test_framework; using std::fabs; using std::sqrt; -namespace market_model_test { - - Date todaysDate, startDate, endDate; - Schedule dates; - std::vector