19#include <boost/make_shared.hpp>
20#include <boost/test/unit_test.hpp>
23#include <oret/toplevelfixture.hpp>
27using namespace boost::unit_test_framework;
36 BOOST_CHECK_EQUAL(curveSpec->baseType(), curveType);
37 BOOST_CHECK_EQUAL(curveSpec->curveConfigID(), curveId);
44BOOST_FIXTURE_TEST_SUITE(OREDataTestSuite, ore::test::TopLevelFixture)
46BOOST_AUTO_TEST_SUITE(CurveSpecParserTests)
49 checkCurveSpec(
"Equity/USD/.SPX", CurveSpec::CurveType::Equity,
".SPX");
50 checkCurveSpec(
"Equity/USD/BBG:BRK\\/B UN Equity", CurveSpec::CurveType::Equity,
"BBG:BRK/B UN Equity");
51 checkCurveSpec(
"Yield/USD/USD-FedFunds", CurveSpec::CurveType::Yield,
"USD-FedFunds");
54BOOST_AUTO_TEST_SUITE_END()
56BOOST_AUTO_TEST_SUITE_END()
CurveType
Supported curve types.
QuantLib::ext::shared_ptr< CurveSpec > parseCurveSpec(const string &s)
function to convert a string into a curve spec
BOOST_AUTO_TEST_CASE(testCurveSpecParsing)