Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Functions
index.cpp File Reference
#include "toplevelfixture.hpp"
#include <boost/test/unit_test.hpp>
#include <ql/currency.hpp>
#include <ql/index.hpp>
#include <ql/time/calendars/target.hpp>
#include <ql/time/calendars/unitedstates.hpp>
#include <qle/indexes/ibor/brlcdi.hpp>
#include <qle/indexes/ibor/chfsaron.hpp>
#include <qle/indexes/ibor/chftois.hpp>
#include <qle/indexes/ibor/clpcamara.hpp>
#include <qle/indexes/ibor/cnyrepofix.hpp>
#include <qle/indexes/ibor/copibr.hpp>
#include <qle/indexes/ibor/corra.hpp>
#include <qle/indexes/ibor/czkpribor.hpp>
#include <qle/indexes/ibor/demlibor.hpp>
#include <qle/indexes/ibor/dkkcibor.hpp>
#include <qle/indexes/ibor/dkkcita.hpp>
#include <qle/indexes/ibor/dkkois.hpp>
#include <qle/indexes/ibor/hkdhibor.hpp>
#include <qle/indexes/ibor/hufbubor.hpp>
#include <qle/indexes/ibor/idridrfix.hpp>
#include <qle/indexes/ibor/idrjibor.hpp>
#include <qle/indexes/ibor/ilstelbor.hpp>
#include <qle/indexes/ibor/inrmiborois.hpp>
#include <qle/indexes/ibor/inrmifor.hpp>
#include <qle/indexes/ibor/jpyeytibor.hpp>
#include <qle/indexes/ibor/krwcd.hpp>
#include <qle/indexes/ibor/krwkoribor.hpp>
#include <qle/indexes/ibor/mxntiie.hpp>
#include <qle/indexes/ibor/myrklibor.hpp>
#include <qle/indexes/ibor/noknibor.hpp>
#include <qle/indexes/ibor/nzdbkbm.hpp>
#include <qle/indexes/ibor/phpphiref.hpp>
#include <qle/indexes/ibor/seksior.hpp>
#include <qle/indexes/ibor/sekstibor.hpp>
#include <qle/indexes/ibor/sekstina.hpp>
#include <qle/indexes/ibor/sgdsibor.hpp>
#include <qle/indexes/ibor/sgdsor.hpp>
#include <qle/indexes/ibor/skkbribor.hpp>
#include <qle/indexes/ibor/sora.hpp>
#include <qle/indexes/ibor/thbbibor.hpp>
#include <qle/indexes/ibor/tonar.hpp>
#include <qle/indexes/ibor/twdtaibor.hpp>

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (testIborIndex)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE()

BOOST_AUTO_TEST_CASE ( testIborIndex  )

Definition at line 82 of file index.cpp.

82 {
83
84 BOOST_TEST_MESSAGE("Testing QuantExt indexes");
85
86 Period pd(3, Months);
87
88 IndTestData data[] = {
89 { CHFTois(), "CHF-TOIS", Switzerland().name(), CHFCurrency().name() },
90 { CHFSaron(), "CHF-SARON", Switzerland().name(), CHFCurrency().name() },
91 { CORRA(), "CORRA", Canada().name(), CADCurrency().name() },
92 { CZKPribor(pd), "CZK-PRIBOR", CzechRepublic().name(), CZKCurrency().name() },
93 { DKKCibor(pd), "DKK-CIBOR", Denmark().name(), DKKCurrency().name() },
94 { DKKCita(), "DKK-CITA", Denmark().name(), DKKCurrency().name() },
95 { DKKOis(), "DKK-DKKOIS", Denmark().name(), DKKCurrency().name() },
96 { HKDHibor(pd), "HKD-HIBOR", HongKong().name(), HKDCurrency().name() },
97 { HUFBubor(pd), "HUF-BUBOR", Hungary().name(), HUFCurrency().name() },
98 { IDRIdrfix(pd), "IDR-IDRFIX", Indonesia().name(), IDRCurrency().name() },
99 { IDRJibor(pd), "IDR-JIBOR", Indonesia().name(), IDRCurrency().name() },
100 { ILSTelbor(pd), "ILS-TELBOR", QuantExt::Israel(QuantExt::Israel::Telbor).name(), ILSCurrency().name() },
101 { INRMiborOis(), "INR-MIBOROIS", India().name(), INRCurrency().name() },
102 { INRMifor(pd), "INR-MIFOR", India().name(), INRCurrency().name() },
103 { JPYEYTIBOR(pd), "JPY-EYTIBOR", Japan().name(), JPYCurrency().name() },
104 { MXNTiie(pd), "MXN-TIIE", Mexico().name(), MXNCurrency().name() },
105 { NOKNibor(pd), "NOK-NIBOR", Norway().name(), NOKCurrency().name() },
106 { NZDBKBM(pd), "NZD-BKBM", NewZealand().name(), NZDCurrency().name() },
107 { SEKStibor(pd), "SEK-STIBOR", Sweden().name(), SEKCurrency().name() },
108 { SEKStina(), "SEK-STINA", Sweden().name(), SEKCurrency().name() },
109 { SEKSior(), "SEK-SIOR", Sweden().name(), SEKCurrency().name() },
110 { SGDSibor(pd), "SGD-SIBOR", Singapore().name(), SGDCurrency().name() },
111 { SGDSor(pd), "SGD-SOR", Singapore().name(), SGDCurrency().name() },
112 { SKKBribor(pd), "SKK-BRIBOR", Slovakia().name(), SKKCurrency().name() },
113 { Tonar(), "TONAR", Japan().name(), JPYCurrency().name() },
114 { Sora(), "SGD-SORA", Singapore().name(), SGDCurrency().name() },
115 { KRWCd(pd), "KRW-CD", SouthKorea(SouthKorea::Settlement).name(), KRWCurrency().name() },
116 { KRWKoribor(pd), "KRW-KORIBOR", SouthKorea(SouthKorea::Settlement).name(), KRWCurrency().name() },
117 { MYRKlibor(pd), "MYR-KLIBOR", Malaysia().name(), MYRCurrency().name() },
118 { TWDTaibor(pd), "TWD-TAIBOR", Taiwan().name(), TWDCurrency().name() },
119 { CNYRepoFix(pd), "CNY-REPOFIX", China(China::IB).name(), CNYCurrency().name() }
120 };
121
122 Size size = sizeof(data) / sizeof(data[0]);
123
124 for (Size i = 0; i < size; i++) {
125 BOOST_CHECK_EQUAL(data[i].ind.familyName(), data[i].name);
126 BOOST_CHECK_EQUAL(data[i].ind.fixingCalendar().name(), data[i].calName);
127 BOOST_CHECK_EQUAL(data[i].ind.currency().name(), data[i].ccyName);
128 }
129}
CHF SARON rate
Definition: chfsaron.hpp:42
CHF TOIS rate
Definition: chftois.hpp:43
CNY-CNREPOFIX=CFXS-Reuters index.
Definition: cnyrepofix.hpp:43
CORRA rate
Definition: corra.hpp:39
CZK-PRIBOR index.
Definition: czkpribor.hpp:46
DKK-CIBOR index.
Definition: dkkcibor.hpp:47
HKD-HIBOR index.
Definition: hkdhibor.hpp:44
HUF-BUBOR index.
Definition: hufbubor.hpp:47
IDR-IDRFIX index.
Definition: idridrfix.hpp:46
IDR-JIBOR index.
Definition: idrjibor.hpp:42
ILS-TELBOR index.
Definition: ilstelbor.hpp:43
INR-MIBOROIS index.
Definition: inrmiborois.hpp:46
INR-MIFOR index.
Definition: inrmifor.hpp:46
Israel calendar.
Definition: israel.hpp:40
JPY Euroyen TIBOR index
Definition: jpyeytibor.hpp:45
KRW-CD index.
Definition: krwcd.hpp:42
KRW-KORIBOR index.
Definition: krwkoribor.hpp:42
MXN-TIIE index.
Definition: mxntiie.hpp:46
MYR-KLIBOR index.
Definition: myrklibor.hpp:44
NOK-NIBOR index.
Definition: noknibor.hpp:46
NZD-BKBM index.
Definition: nzdbkbm.hpp:44
SEK-STIBOR index.
Definition: sekstibor.hpp:46
SGD-SIBOR index.
Definition: sgdsibor.hpp:44
SGD-SOR index.
Definition: sgdsor.hpp:44
SKK-BRIBOR index.
Definition: skkbribor.hpp:46
SGD SORA rate
Definition: sora.hpp:45
Swiss calendar.
Definition: switzerland.hpp:50
TWD-TAIBOR index.
Definition: twdtaibor.hpp:42
JPY TONAR rate
Definition: tonar.hpp:45