From 193e32ff394cb7f21d1ac2ed334334e86400945a Mon Sep 17 00:00:00 2001 From: Luigi Ballabio Date: Mon, 29 Jul 2024 12:00:36 +0200 Subject: [PATCH] Remove leftover utility class --- test-suite/utilities.hpp | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/test-suite/utilities.hpp b/test-suite/utilities.hpp index aa1cb34e5c0..3d1892527a9 100644 --- a/test-suite/utilities.hpp +++ b/test-suite/utilities.hpp @@ -35,7 +35,6 @@ #include #endif #include -#include #include #include #include @@ -67,38 +66,8 @@ using QuantLib::value; // This makes it easier to use array literals (for new code, use std::vector though) #define LENGTH(a) (sizeof(a)/sizeof(a[0])) -#define QUANTLIB_TEST_CASE(f) BOOST_TEST_CASE(QuantLib::detail::quantlib_test_case(f)) - namespace QuantLib { - namespace detail { - - // used to avoid no-assertion messages in Boost 1.35 - class quantlib_test_case { - std::function test_; - public: - template - explicit quantlib_test_case(F test) : test_(test) {} - void operator()() const { - // Restore settings after each test. - SavedSettings restore; - // Clear all fixings before running a test to avoid interference. - IndexManager::instance().clearHistories(); - BOOST_CHECK(true); - test_(); - } - #if BOOST_VERSION <= 105300 - // defined to avoid unused-variable warnings. It doesn't - // work after Boost 1.53 because the functions were - // overloaded and the address can't be resolved. - void _use_check( - const void* = &boost::test_tools::check_is_close, - const void* = &boost::test_tools::check_is_small) const {} - #endif - }; - - } - std::string payoffTypeToString(const ext::shared_ptr&); std::string exerciseTypeToString(const ext::shared_ptr&);