Lazy-object tests
Testing that lazy objects discard notifications after the first...
Testing that lazy objects forward all notifications when told...
Observer tests
Testing observable settings...
Black delta calculator tests
Testing delta calculator values...
Testing premium-adjusted delta price consistency...
Testing put-call parity for deltas...
Testing delta-neutral ATM quotations...
Exchange rate tests
Testing direct exchange rates...
Testing derived exchange rates...
Testing lookup of direct exchange rates...
Testing lookup of triangulated exchange rates...
Testing lookup of derived exchange rates...
Money tests
Testing money arithmetic without conversions...
Testing money arithmetic with conversion to base currency...
Testing money arithmetic with automated conversion...
Rounding tests
Testing closest decimal rounding...
Testing upward decimal rounding...
Testing downward decimal rounding...
Testing floor decimal rounding...
Testing ceiling decimal rounding...
Business day convention tests
Testing business day conventions...
Calendar tests
Testing calendar modification...
Testing joint calendars...
Testing US settlement holiday list...
Testing US government bond market holiday list...
Testing New York Stock Exchange holiday list...
Testing TARGET holiday list...
Testing Frankfurt Stock Exchange holiday list...
Testing Eurex holiday list...
Testing Xetra holiday list...
Testing UK settlement holiday list...
Testing London Stock Exchange holiday list...
Testing London Metals Exchange holiday list...
Testing Milan Stock Exchange holiday list...
Testing Russia holiday list...
Testing Brazil holiday list...
Testing South-Korean settlement holiday list...
Testing Korea Stock Exchange holiday list...
Testing China Shanghai Stock Exchange holiday list...
Testing China Inter Bank working weekends list...
Testing end-of-month calculation...
Testing calculation of business days between dates...
Testing bespoke calendars...
Date tests
Testing ECB dates...
Testing IMM dates...
Testing ASX dates...
Testing dates...
Testing ISO dates...
Testing parsing of dates...
Testing intraday information of dates...
Day counter tests
Testing actual/actual day counters...
Testing actual/actual day counter with schedule...
Testing simple day counter...
Testing 1/1 day counter...
Testing business/252 day counter...
Testing thirty/360 day counter (Bond Basis)...
Testing thirty/360 day counter (Eurobond Basis)...
Testing intraday behavior of day counter ...
Period tests
Testing period algebra on years/months...
Testing period algebra on weeks/days...
Testing period parsing...
Schedule tests
Testing schedule with daily frequency...
Testing end date for schedule with end-of-month adjustment...
Testing that no dates are past the end date with EOM adjustment...
Testing that next-to-last date same as end date is removed...
Testing that the last date is not adjusted for EOM when termination date convention is unadjusted...
Testing that the first date is not duplicated due to EOM convention when going backwards...
Testing CDS2015 semi-annual rolling convention...
Testing the constructor taking a vector of dates and possibly additional meta information...
Testing that a four-weeks tenor works...
Timegrid tests
TimeGrid constructor with additional steps...
TimeGrid constructor with only mandatory points...
Test TimeGrid construction with n evenly spaced points...
Test if the constructor raises an error for empty iterators...
Test if the constructor raises an error for negative time values...
Test returned index is closest to the requested time...
Test returned time matches to the requested index...
Test mandatory times are recalled correctly...
Time series tests
Testing time series construction...
Testing time series interval price...
Testing time series iterators...
Gaussian quadratures tests
Testing Gauss-Jacobi integration...
Testing Gauss-Laguerre integration...
Testing Gauss-Hermite integration...
Testing Gauss hyperbolic integration...
Testing tabulated Gauss-Laguerre integration...
Gaussian quadratures experimental tests
Testing Gauss non-central chi-squared integration...
Testing Gauss non-central chi-squared sum of notes...
Integration tests
Testing segment integration...
Testing trapezoid integration...
Testing mid-point trapezoid integration...
Testing Simpson integration...
Testing adaptive Gauss-Kronrod integration...
Testing adaptive Gauss-Lobatto integration...
Testing non-adaptive Gauss-Kronrod integration...
Testing two dimensional adaptive Gauss-Lobatto integration...
Testing Folin's integral formulae...
Testing discrete integral formulae...
Testing discrete integrator formulae...
Testing piecewise integral...
Numerical differentiation tests
Testing numerical differentiation using the central scheme...
Testing numerical differentiation using the backward scheme...
Testing numerical differentiation using the Forward scheme...
Testing numerical differentiation of first order using an irregular scheme...
Testing numerical differentiation of second order using an irregular scheme...
Testing numerical differentiation of sin function...
Testing coefficients from numerical differentiation by comparison with results from Vandermonde matrix inversion...
ODE tests
Testing adaptive Runge Kutta...
Testing matrix exponential based on ode...
Testing matrix exponential of a zero matrix based on ode...
1-D solver tests
Testing Brent solver...
Testing bisection solver...
Testing false-position solver...
Testing Newton solver...
Testing Newton-safe solver...
Testing Halley solver...
Testing Halley-safe solver...
Testing finite-difference Newton-safe solver...
Testing Ridder solver...
Testing secant solver...
Array tests
Testing array construction...
Testing array functions...
Covariance and correlation tests
Testing matrix rank reduction salvaging algorithms...
Testing positive semi-definiteness salvaging algorithms...
Testing covariance and correlation calculations...
Matrix tests
Testing eigenvalues and eigenvectors calculation...
Testing matricial square root...
Testing Higham matricial square root...
Testing singular value decomposition...
Testing QR decomposition...
Testing QR solve...
Testing LU inverse calculation...
Testing LU determinant calculation...
Testing orthogonal projections...
Testing Cholesky Decomposition...
Testing Moore-Penrose inverse...
Testing iterative solvers...
TQR eigen decomposition tests
Testing TQR eigenvalue decomposition...
Testing TQR zero-off-diagonal eigenvalues...
Testing TQR eigenvector decomposition...
Auto-covariance tests
Testing convolutions...
Testing auto-covariances...
Testing auto-correlations...
Distribution tests
Testing normal distributions...
Testing bivariate cumulative normal distribution...
Testing Poisson distribution...
Testing cumulative Poisson distribution...
Testing inverse cumulative Poisson distribution...
Testing bivariate cumulative Student t distribution...
Testing bivariate cumulative Student t distribution for large N...
Testing inverse CDF based on stochastic collocation...
Linear least squares regression tests
Testing linear least-squares regression...
Testing multi-dimensional linear least-squares regression...
Testing 1D simple linear least-squares regression...
Optimizers tests
Testing optimizers...
Testing nested optimizations...
Testing differential evolution...
Risk statistics tests
Testing risk measures...
Statistics tests
Testing statistics...
Testing sequence statistics...
Testing convergence statistics...
Testing incremental statistics...
Low-discrepancy sequence tests
Testing random-seed generator...
Testing 21200 primitive polynomials modulo two...
Testing randomized low-discrepancy sequences up to dimension 21200...
Testing randomized lattice sequences...
Testing Sobol sequences up to dimension 21200...
Testing Faure sequences...
Testing Halton sequences...
Testing Mersenne-twister discrepancy...
Testing plain Halton discrepancy...
Testing random-start Halton discrepancy...
Testing random-shift Halton discrepancy...
Testing random-start, random-shift Halton discrepancy...
Testing Jaeckel-Sobol discrepancy...
Testing Levitan-Sobol discrepancy...
Testing Levitan-Lemieux-Sobol discrepancy...
Testing unit Sobol discrepancy...
Testing Sobol sequence skipping...
RNG traits tests
Testing Gaussian pseudo-random number generation...
Testing Poisson pseudo-random number generation...
Testing custom Poisson pseudo-random number generation...
Mersenne twister tests
Testing Mersenne twister...
Fast fourier transform tests
Testing complex direct FFT...
Testing convolution via inverse FFT...
Factorial tests
Testing factorial numbers...
Testing Gamma function...
Testing Gamma values...
Testing modified Bessel function of first and second kind...
Testing weighted modified Bessel functions...
Interpolation tests
Testing spline approximation on Gaussian data sets...
Testing spline interpolation on a Gaussian data set...
Testing spline interpolation on RPN15A data set...
Testing spline interpolation on generic values...
Testing symmetry of spline interpolation end-conditions ...
Testing derivative end-conditions for spline interpolation ...
Testing non-restrictive Hyman filter...
Testing N-dimensional cubic spline...
Testing use of interpolations as functors...
Testing Fritsch-Butland interpolation...
Testing backward-flat interpolation...
Testing forward-flat interpolation...
Testing Sabr interpolation...
Testing kernel 1D interpolation...
Testing kernel 2D interpolation...
Testing bicubic spline derivatives...
Testing that bicubic splines actually update...
Testing Richardson extrapolation...
Testing no-arbitrage Sabr interpolation...
Testing Sabr calibration single cases...
Testing Sabr and no-arbitrage Sabr transformation functions...
Testing Lagrange interpolation...
Testing Lagrange interpolation at supporting points...
Testing Lagrange interpolation derivatives...
Testing Lagrange interpolation on Chebyshev points...
Testing B-Splines...
Testing piecewise constant interpolation on a single point...
Sampled curve tests
Testing sampled curve construction...
Transformed grid
Testing transformed grid construction...
Cash flows tests
Testing cash-flow settings...
Testing dynamic cast of coupon in Black pricer...
Testing default evaluation date in cashflows methods...
Testing ibor leg construction with null fixing days...
Testing irregular first coupon reference dates with end of month enabled...
Testing irregular last coupon reference dates with end of month enabled...
Testing leg construction with partial schedule...
Capped and floored coupon tests
Testing degenerate collared coupon...
Testing collared coupon against its decomposition...
Digital coupon tests
Testing European asset-or-nothing digital coupon...
Testing European deep in-the-money asset-or-nothing digital coupon...
Testing European deep out-the-money asset-or-nothing digital coupon...
Testing European cash-or-nothing digital coupon...
Testing European deep in-the-money cash-or-nothing digital coupon...
Testing European deep out-the-money cash-or-nothing digital coupon...
Testing call/put parity for European digital coupon...
Testing replication type for European digital coupon...
YoY inflation capped and floored coupon tests
Testing collared coupon against its decomposition...
Testing inflation capped/floored coupon against inflation capfloor instrument...
Interest Rate tests
Testing interest-rate conversions...
Range Accrual tests
Testing infinite range accrual floaters...
Testing price monotonicity with respect to the lower strike...
Testing price monotonicity with respect to the upper strike...
Hybrid Heston-HullWhite tests
Testing European option pricing for a BSM process with one-factor Hull-White model...
Comparing European option pricing for a BSM process with one-factor Hull-White model...
Testing Monte-Carlo zero bond pricing...
Testing Monte-Carlo vanilla option pricing...
Testing Monte-Carlo Heston option pricing...
Testing analytic Heston Hull-White option pricing...
Testing the pricing of a callable equity product...
Testing the discretization error of the Heston Hull-White process...
Testing the FDM Heston Hull-White engine...
Testing convergence speed of Heston-Hull-White engine...
Testing spatial convergence speed of Heston engine...
Testing the Heston Hull-White calibration...
Testing H1HWEngine...
Brownian bridge tests
Testing Brownian-bridge variates...
Testing Brownian-bridge path generation...
Path generation tests
Testing 1-D path generation against cached values...
Testing n-D path generation against cached values...
Longstaff Schwartz MC engine tests
Testing Monte-Carlo pricing of American options...
Testing Monte-Carlo pricing of American max options...
Curve States tests
Testing constant-maturity-swap-market-model curve state...
Finite Difference Heston tests
Testing FDM Heston variance mesher ...
Testing FDM Heston variance mesher ...
Testing FDM with barrier option for Heston model vs Black-Scholes model...
Testing FDM with American option in Heston model...
Testing FDM Heston for Ikonen and Toivanen tests...
Testing FDM Heston with Black Scholes model...
Testing FDM with European option with dividends in Heston model...
Testing FDM Heston convergence...
Testing FDM Heston intraday pricing ...
Testing method of lines to solve Heston PDEs...
Testing for spurious oscillations when solving the Heston PDEs...
Linear operator tests
Testing indexing of a linear operator...
Testing uniform grid mesher...
Testing application of first-derivatives map...
Testing application of second-derivatives map...
Testing finite differences coefficients...
Testing application of second-order mixed-derivatives map...
Testing triple-band map solution...
Testing FDM with barrier option in Heston model...
Testing FDM with American option in Heston model...
Testing FDM with express certificate in Heston model...
Testing FDM with Heston Hull-White model...
Testing bi-conjugated gradient stabilized algorithm...
Testing GMRES algorithm...
Testing Crank-Nicolson with initial implicit damping steps for a digital option...
Testing SparseMatrixReference type...
Testing assignment to zero in sparse matrix...
Testing integrals over meshers functions...
Testing Black-Scholes mesher in a high interest rate scenario...
Testing Black-Scholes mesher in a low volatility and high discrete dividend scenario...
Operator tests
Testing tridiagonal operator...
Testing differential operators...
Testing consistency of BSM operators...
European option extended trees tests
Testing time-dependent JR binomial European engines against analytic results...
Testing time-dependent CRR binomial European engines against analytic results...
Testing time-dependent EQP binomial European engines against analytic results...
Testing time-dependent TGEO binomial European engines against analytic results...
Testing time-dependent TIAN binomial European engines against analytic results...
Testing time-dependent LR binomial European engines against analytic results...
Testing time-dependent Joshi binomial European engines against analytic results...
Black formula tests
Testing Bachelier implied vol...
Testing Chambers-Nawalkha implied vol approximation...
Testing Radoicic-Stefanica implied vol approximation...
Testing Radoicic-Stefanica lower bound...
Testing implied volatility calculation via adaptive successive over-relaxation...
Amortizing bond tests
Testing amortizing fixed rate bond...
Bond tests
Testing consistency of bond price/yield calculation...
Testing consistency of bond price/ATM rate calculation...
Testing consistency of bond price/z-spread calculation...
Testing theoretical bond price/yield calculation...
Testing bond price/yield calculation against cached values...
Testing zero-coupon bond prices against cached values...
Testing fixed-coupon bond prices against cached values...
Testing floating-rate bond prices against cached values...
Testing Brazilian public bond prices against Andima cached values...
Testing ex-coupon UK Gilt price against market values...
Testing ex-coupon Australian bond price against market values...
Testing South African R2048 bond price using Schedule constructor with Date vector...
Testing Thirty/360 bond with settlement on 31st of the month...
CatBond tests
Testing that catastrophe events are split correctly for periods of whole years...
Testing that catastrophe events are split correctly for irregular periods...
Testing that catastrophe events are split correctly when there are no simulated events...
Testing that beta risk gives correct terminal distribution...
Testing floating-rate cat bond against risk-free floating-rate bond...
Testing floating-rate cat bond in a doom scenario (certain default)...
Testing floating-rate cat bond in a doom once in 10 years scenario...
Testing floating-rate cat bond in a doom once in 10 years scenario with proportional notional reduction...
Testing floating-rate cat bond in a generated scenario with proportional notional reduction...
Convertible bond tests
Testing out-of-the-money convertible bonds against vanilla bonds...
Testing zero-coupon convertible bonds against vanilla option...
Testing fixed-coupon convertible bond in known regression case...
Cap and floor tests
Testing cap/floor vega...
Testing cap/floor dependency on strike...
Testing consistency between cap, floor and collar...
Testing cap/floor parity...
Testing cap/floor ATM rate...
Testing implied term volatility for cap and floor...
Testing Black cap/floor price against cached values...
Inflation (year-on-year) Cap and floor tests
Testing consistency between yoy inflation cap, floor and collar...
Testing yoy inflation cap/floor parity...
Testing Black yoy inflation cap/floor price against cached values...
CPI swaption tests
Testing cpi capfloor price surface...
Testing cpi capfloor pricer...
Forward rate agreement
Testing forward rate agreement construction...
Instrument tests
Testing observability of instruments...
Testing reaction of composite instrument to date changes...
American option tests
Testing Barone-Adesi and Whaley approximation for American options...
Testing Bjerksund and Stensland approximation for American options...
Testing Ju approximation for American options...
Testing finite-difference engine for American options...
Testing finite-differences American option greeks...
Testing finite-differences shout option greeks...
Asian option tests
Testing analytic continuous geometric average-price Asians...
Testing analytic continuous geometric average-price Asian greeks...
Testing analytic discrete geometric average-price Asians...
Testing analytic discrete geometric average-strike Asians...
Testing Monte Carlo discrete geometric average-price Asians...
Testing Monte Carlo discrete arithmetic average-price Asians...
Testing Monte Carlo discrete arithmetic average-strike Asians...
Testing discrete-averaging geometric Asian greeks...
Testing use of past fixings in Asian options...
Testing Asian options with all fixing dates in the past...
Asian option experimental tests
Testing Levy engine for Asians options...
Testing Vecer engine for Asian options...
Barrier option tests
Testing that knock-in plus knock-out barrier options replicate a European option...
Testing barrier options against Haug's values...
Testing barrier options against Babsiri's values...
Testing barrier options against Beaglehole's values...
Testing local volatility and Heston FD engines for barrier options...
Testing barrier option pricing with discrete dividends...
Barrier option experimental tests
Testing perturbative engine for barrier options...
Testing barrier FX options against Vanna/Volga values...
Basket option tests
Testing two-asset European basket options...
Testing three-asset basket options against Barraquand's values...
Testing three-asset American basket options against Tavella's values...
Testing basket American options against 1-D case...
Testing antithetic engine using odd sample number...
Testing 2D local-volatility spread-option pricing...
Testing Greeks of two-dimensional PDE engine...
Cliquet option tests
Testing Cliquet option values...
Testing Cliquet option greeks...
Testing performance option greeks...
Testing Monte Carlo performance engine against analytic results...
Dividend European option tests
Testing dividend European option values with no dividends...
Testing dividend European option values with known value...
Testing dividend European option with a dividend on today's date...
Testing dividend European option values with end limits...
Testing dividend European option greeks...
Testing finite-difference dividend European option values...
Testing finite-differences dividend European option greeks...
Testing finite-differences dividend American option greeks...
Testing degenerate finite-differences dividend European option...
Testing degenerate finite-differences dividend American option...
European option tests
Testing European option values...
Testing European option greek values...
Testing analytic European option greeks...
Testing European option implied volatility...
Testing self-containment of implied volatility calculation...
Testing JR binomial European engines against analytic results...
Testing CRR binomial European engines against analytic results...
Testing EQP binomial European engines against analytic results...
Testing TGEO binomial European engines against analytic results...
Testing TIAN binomial European engines against analytic results...
Testing LR binomial European engines against analytic results...
Testing Joshi binomial European engines against analytic results...
Testing finite-difference European engines against analytic results...
Testing integral European engines against analytic results...
Testing Monte Carlo European engines against analytic results...
Testing Quasi Monte Carlo European engines against analytic results...
Testing European price curves...
Testing finite-differences with local volatility...
Testing separate discount curve for analytic European engine...
Testing different PDE schemes to solve Black-Scholes PDEs...
Testing finite-difference European engine with non-constant parameters...
European option experimental tests
Testing FFT European engines against analytic results...
Forward option tests
Testing forward option values...
Testing forward performance option values...
Testing forward option greeks...
Testing forward performance option greeks...
Testing forward option greeks initialization...
Quanto option tests
Testing quanto option values...
Testing quanto option greeks...
Testing quanto-forward option values...
Testing quanto-forward option greeks...
Testing quanto-forward-performance option values...
Testing quanto-barrier option values...
Experimental quanto option tests
Testing quanto-double-barrier option values...
Quote tests
Testing observability of quotes...
Testing observability of quote handles...
Testing derived quotes...
Testing composite quotes...
Testing forward-value and implied-standard-deviation quotes...
Asset swap tests
Testing consistency between fair price and fair spread...
Testing implied bond value against asset-swap fair price with null spread...
Testing relationship between market asset swap and par asset swap...
Testing clean and dirty price with null Z-spread against theoretical prices...
Testing implied generic-bond value against asset-swap fair price with null spread...
Testing market asset swap against par asset swap with generic bond...
Testing clean and dirty price with null Z-spread against theoretical prices...
Testing clean and dirty prices for specialized bond against equivalent generic bond...
Testing asset-swap prices and spreads for specialized bond against equivalent generic bond...
Cms tests
Testing Hagan-pricer flat-vol equivalence for coupons...
Testing Hagan-pricer flat-vol equivalence for swaps...
Testing put-call parity for capped-floored CMS coupons...
Cms spread tests
Testing fixings of cms spread indices...
Testing pricing of cms spread coupons...
Overnight-indexed swap tests
Testing Eonia-swap calculation of fair fixed rate...
Testing Eonia-swap calculation of fair floating spread...
Testing Eonia-swap calculation against cached value...
Testing Eonia-swap curve building...
Testing Eonia-swap curve building with telescopic value dates...
Testing seasoned Eonia-swap calculation...
Swap tests
Testing vanilla-swap calculation of fair fixed rate...
Testing vanilla-swap calculation of fair floating spread...
Testing vanilla-swap dependency on fixed rate...
Testing vanilla-swap dependency on floating spread...
Testing in-arrears swap calculation...
Testing vanilla-swap calculation against cached value...
swap-forward mappings tests
Testing forward-rate coinitial-swap Jacobian...
Testing forward-rate coterminal-swap mappings...
Testing implied swaption vol in LMM using HW approximation...
Bermudan swaption tests
Testing Bermudan swaption with HW model against cached values...
Testing Bermudan swaption with G2 model against cached values...
Swaption tests
Testing swaption dependency on strike...
Testing swaption dependency on spread...
Testing swaption treatment of spread...
Testing swaption value against cached value...
Testing swaption vega...
Testing cash settled swaptions modified annuity...
Testing implied volatility for swaptions...
Swaption Volatility Cube tests
Testing swaption volatility cube (atm vols)...
Testing swaption volatility cube (smile)...
Testing swaption volatility cube (sabr interpolation)...
Testing spreaded swaption volatility cube...
Testing volatility cube observability...
Swaption Volatility Matrix tests
Testing swaption volatility matrix observability...
Testing swaption volatility matrix...
Bates model tests
Testing analytic Bates engine against Black formula...
Testing analytic Bates engine against Merton-76 engine...
Testing analytic Bates engine against Monte-Carlo engine...
Testing Bates model calibration using DAX volatility data...
GARCH model tests...
Testing GARCH model calibration...
Testing GARCH model calculation...
GJR-GARCH model tests
Testing Monte Carlo GJR-GARCH engine against analytic GJR-GARCH engine...
Testing GJR-GARCH model calibration using DAX volatility data...
GSR model tests
Testing GSR process...
Testing GSR model...
Heston model tests
Testing Heston model calibration using a flat volatility surface...
Testing Heston model calibration using DAX volatility data...
Testing analytic Heston engine against Black formula...
Testing analytic Heston engine against cached values...
Testing Monte Carlo Heston engine against cached values...
Testing FD barrier Heston engine against cached values...
Testing FD vanilla Heston engine against cached values...
Testing MC and FD Heston engines for the Kahl-Jaeckel example...
Testing different numerical Heston integration algorithms...
Testing multiple-strikes FD Heston engine...
Testing analytic piecewise time dependent Heston prices...
Testing time-dependent Heston model calibration...
Testing Alan Lewis reference prices...
Testing expansion on Alan Lewis reference prices...
Testing expansion on Forde reference prices...
Testing semi-analytic Heston pricing with all integration methods...
Testing Heston COS cumulants...
Testing Heston pricing via COS method...
Testing Heston characteristic function...
Testing Andersen-Piterbarg method to price under the Heston model...
Testing Andersen-Piterbarg Integrand with control variate...
Testing Andersen-Piterbarg pricing convergence...
Testing piecewise time dependent ChF vs Heston ChF...
Testing piecewise time dependent comparison...
Testing piecewise time dependent ChF Asymtotic...
Heston model experimental tests
Testing analytic PDF Heston engine...
Heston Stochastic Local Volatility tests
Testing Fokker-Planck forward equation for BS process...
Testing zero-flow BC for the square root process...
Testing zero-flow BC for transformed Fokker-Planck forward equation...
Testing Fokker-Planck forward equation for the square root process with stationary density...
Testing Fokker-Planck forward equation for the square root log process with stationary density...
Testing Fokker-Planck forward equation for the square root process with Dirac start...
Testing Fokker-Planck forward equation for the Heston process...
Testing Fokker-Planck forward equation for the Heston process Log Transformation with leverage LV limiting case...
Testing Fokker-Planck forward equation for BS Local Vol process...
Testing local volatility vs SLV model...
Testing calibration via vanilla options...
Testing Barrier pricing with mixed models...
Testing Monte-Carlo vs FDM Pricing for Heston SLV models...
Testing Monte-Carlo Calibration...
Testing the implied volatility skew of forward starting options in SLV model...
Testing double no touch pricing with SLV and mixing...
Jump-diffusion tests
Testing Merton 76 jump-diffusion model for European options...
Markov functional model tests
Testing Markov functional state process...
Testing Kahale smile section...
Testing Markov functional calibration to one instrument set...
Testing Markov functional vanilla engines...
Testing Markov functional calibration to two instrument sets...
Testing Markov functional Bermudan swaption engine...
Normal CLV Model tests
Testing Black-Scholes cumulative distribution function with constant volatility...
Testing Heston cumulative distribution function...
Testing illustrative 1D example of normal CLV model...
Testing Monte Carlo BS option pricing...
Testing double no-touch pricing with normal CLV model...
Short-rate model tests
Testing Hull-White calibration against cached values using swaptions with start delay...
Testing Hull-White calibration with fixed reversion against cached values...
Testing Hull-White calibration against cached values using swaptions without start delay...
Testing Hull-White swap pricing against known values...
Testing Hull-White futures convexity bias...
Testing zero bond pricing for extended CIR model ...
Square-root CLV Model tests
Testing vanilla option pricing with square root kernel process...
Testing mapping function of the square root kernel process...
Testing forward skew dynamics with square root kernel process...
Market model tests
Testing exact repricing of one-step forwards and optionlets in a lognormal forward rate market model...
Testing exact repricing of one-step forwards and optionlets in a normal forward rate market model...
Testing exact repricing of inverse floater in forward rate market model...
CMS Market-model tests
Testing exact repricing of multi-step constant maturity swaps and swaptions in a lognormal constant maturity swap market model...
SMM Market-model tests
Testing exact repricing of multi-step coterminal swaps and swaptions in a lognormal coterminal swap rate market model...
SMM Caplet alpha calibration test
Testing alpha caplet calibration in a lognormal coterminal swap market model...
SMM Caplet calibration test
Testing GHLS caplet calibration in a lognormal coterminal swap market model...
volatility models tests
Testing volatility model construction...
Default-probability curve tests
Testing default-probability structure...
Testing flat hazard rate...
Testing piecewise-flat hazard-rate consistency...
Testing piecewise-flat default-density consistency...
Testing piecewise-linear default-density consistency...
Testing log-linear survival-probability consistency...
Testing single-instrument curve bootstrap...
Testing bootstrap on upfront quotes...
Inflation tests
Testing zero inflation indices...
Testing zero inflation term structure...
Testing that zero inflation indices forecast future fixings...
Testing year-on-year inflation indices...
Testing year-on-year inflation term structure...
Testing inflation period...
CPI bond tests
Testing clean price...
CPI swap tests
Testing consistency...
Testing zciis consistency...
Testing cpi bond consistency...
Term structure tests
Testing term structure against evaluation date change...
Testing consistency of implied term structure...
Testing observability of implied term structure...
Testing consistency of forward-spreaded term structure...
Testing observability of forward-spreaded term structure...
Testing consistency of zero-spreaded term structure...
Testing observability of zero-spreaded term structure...
Testing that a zero-spreaded curve can be created with a null underlying curve...
Testing that an underlying curve can be relinked to a null underlying curve...
Testing composite zero yield structures...
Andreasen-Huge volatility interpolation tests
Testing Andreasen-Huge example with Put calibration...
Testing Andreasen-Huge example with Call calibration...
Testing Andreasen-Huge example with instantaneous Call and Put calibration...
Testing Andreasen-Huge example with linear interpolation...
Testing Andreasen-Huge example with piecewise constant interpolation...
Testing Andreasen-Huge volatility interpolation with time dependent interest rates and dividend yield...
Testing Andreasen-Huge volatility interpolation with a single option...
Testing Andreasen-Huge volatility interpolation gives arbitrage free prices...
Testing Barrier option pricing with Andreasen-Huge local volatility surface...
Testing Peter's and Fabien's SABR example...
Testing different optimizer for Andreasen-Huge volatility interpolation...
Testing that reference date of adapter surface moves along with evaluation date...
YoY Optionlet Stripper (yoy inflation vol) tests
Testing conversion from YoY price surface to YoY volatility surface...
Testing conversion from YoY cap-floor surface to YoY inflation term structure...
Optionlet Stripper Tests
Testing forward/forward vol stripping from flat term vol surface using OptionletStripper1 class...
Testing forward/forward vol stripping from non-flat term vol surface using OptionletStripper1 class...
Testing forward/forward vol stripping from non-flat normal vol term vol surface for normal vol setup using OptionletStripper1 class...
Testing forward/forward vol stripping from non-flat normal vol term vol surface for normal vol setup using OptionletStripper1 class...
Testing forward/forward vol stripping from flat term vol surface using OptionletStripper2 class...
Testing forward/forward vol stripping from non-flat term vol surface using OptionletStripper2 class...
Testing switch strike level and recalibration of level in case of curve relinking...
Piecewise yield curve tests
Testing consistency of piecewise-log-cubic discount curve...
Testing consistency of piecewise-log-linear discount curve...
Testing consistency of piecewise-linear discount curve...
Testing consistency of piecewise-log-linear zero-yield curve...
Testing consistency of piecewise-linear zero-yield curve...
Testing consistency of piecewise-cubic zero-yield curve...
Testing consistency of piecewise-linear forward-rate curve...
Testing consistency of piecewise-flat forward-rate curve...
Testing consistency of piecewise-cubic forward-rate curve...
Testing consistency of convex monotone forward-rate curve...
Testing consistency of local-bootstrap algorithm...
Testing observability of piecewise yield curve...
Testing use of today's LIBOR fixings in swap curve...
Testing bootstrap over JPY LIBOR swaps...
Testing copying of discount curve...
Testing copying of forward-rate curve...
Testing copying of zero-rate curve...
Testing SwapRateHelper last relevant date...
Testing bootstrap starting from bad guess...
Interpolated piecewise zero spreaded yield curve tests
Testing flat interpolation before the first spreaded date...
Testing flat interpolation after the last spreaded date...
Testing linear interpolation with more than two spreaded dates...
Testing linear interpolation between two dates...
Testing forward flat interpolation between two dates...
Testing backward flat interpolation between two dates...
Testing default interpolation between two dates...
Testing factory constructor with additional parameters...
Testing term structure max date...
Testing quote update...
CDO tests
Testing CDO premiums against Hull-White values for data set
CDS Option tests
Testing CDS-option value against cached values...
Credit-default swap tests
Testing credit-default swap against cached values...
Testing credit-default swap against cached market values...
Testing implied hazard-rate for credit-default swaps...
Testing fair-spread calculation for credit-default swaps...
Testing fair-upfront calculation for credit-default swaps...
Testing ISDA engine calculations for credit-default swaps...
Nth-to-default tests
Testing nth-to-default against Hull-White values with Gaussian copula...
Testing nth-to-default against Hull-White values with Gaussian and Student copula...
Commodity Unit Of Measure tests
Testing direct commodity unit of measure conversions...
Binary Option tests
Testing cash-or-nothing barrier options against Haug's values...
Testing asset-or-nothing barrier options against Haug's values...
Chooser option tests
Testing analytic simple chooser option...
Testing analytic complex chooser option...
Compound option tests
Testing compound-option put-call parity...
Testing compound-option values and greeks...
Double barrier tests
Testing double barrier european options against Haug's values...
Double barrier experimental tests
Testing double-barrier FX options against Vanna/Volga values...
Double binary tests
Testing cash-or-nothing double barrier options against Haug's values...
Digital option tests
Testing European cash-or-nothing digital option...
Testing European asset-or-nothing digital option...
Testing European gap digital option...
Testing American cash-(at-hit)-or-nothing digital option...
Testing American asset-(at-hit)-or-nothing digital option...
Testing American cash-(at-expiry)-or-nothing digital option...
Testing American asset-(at-expiry)-or-nothing digital option...
Testing American cash-(at-hit)-or-nothing digital option greeks...
Testing Monte Carlo cash-(at-hit)-or-nothing American engine...
Extensible option tests
Testing analytic engine for holder-extensible option...
Testing analytic engine for writer-extensible option...
Everest-option tests
Testing Everest option against cached values...
Himalaya-option tests
Testing Himalaya option against cached values...
Lookback option tests
Testing analytic continuous floating-strike lookback options...
Testing analytic continuous fixed-strike lookback options...
Testing analytic continuous partial floating-strike lookback options...
Testing analytic continuous fixed-strike lookback options...
Exchange option tests
Testing European one-asset-for-another option...
Testing analytic European exchange option greeks...
Testing American one-asset-for-another option...
Pagoda-option tests
Testing pagoda option against cached values...
Partial-time barrier option tests
Testing analytic engine for partial-time barrier option...
Spread option tests
Testing Kirk approximation for spread options...
Swing-Option Test
Testing extended Ornstein-Uhlenbeck process...
Testing finite difference mesher for the Kluge model...
Testing finite difference pricer for the Kluge model...
Testing Black-Scholes vanilla swing option pricing...
Testing simple swing option pricing for Kluge model...
Testing simple swing option pricing for Kluge model...
Two-asset barrier option tests
Testing two-asset barrier options against Haug's values...
Two-asset correlation option tests
Testing analytic engine for two-asset correlation option...
Credit risk plus tests
Testing extended credit risk plus model against reference values...
Risk neutral density calculator tests
Testing density against option prices...
Testing Black-Scholes-Merton and Heston densities...
Testing Fokker-Planck forward equation for local volatility process to calculate risk neutral densities...
Testing probability density for a square root process...
Testing probability density for a BSM process with strike dependent volatility vs local volatility...
Variance Gamma tests
Testing variance-gamma model for European options...
Testing variance-gamma model integration around zero...
Variance option tests
Testing variance option with integral Heston engine...
Variance swap tests
Testing variance swap with replicating cost engine...
Testing variance swap with Monte Carlo engine...
VPP Test
Testing Geman-Roncoroni process...
Testing simple-storage option based on ext. OU model...
Testing simple Kluge ext-Ornstein-Uhlenbeck spread option...
Testing VPP step condition...
Testing VPP pricing using perfect foresight or FDM...
Testing KlugeExtOU matrix decomposition...
Zabr model tests
Testing Consistency ...
NoArbSabr model tests
Testing no-arbitrage Sabr absorption matrix...
Testing consistency of noarb-sabr with Hagan et al (2002)
Libor market model tests
Testing simple covariance models...
Testing caplet pricing...
Testing calibration of a Libor forward model...
Testing forward swap and swaption pricing...
Libor market model process tests
Testing caplet LMM process initialisation...
Testing caplet LMM lambda bootstrapping...
Testing caplet LMM Monte-Carlo caplet pricing...
Examples
Basket Losses
Bermudan Swaption
Bonds
Callable bonds
CDS
Convertable bonds
CVAIRS
Discrete hedging
Equity Option
Fitted bond curve
FRA
Gaussian 1D models
Global Optimizer
Latent Model
Market models
Multi-dim Integral
Replication
Repo
Swap valuation