1/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
3/*
4 Copyright (C) 2007 Ferdinando Ametrano
5 Copyright (C) 2003 StatPro Italia srl
6
7 This file is part of QuantLib, a free-software/open-source library
8 for financial quantitative analysts and developers - http://quantlib.org/
9
10 QuantLib is free software: you can redistribute it and/or modify it
11 under the terms of the QuantLib license. You should have received a
12 copy of the license along with this program; if not, please email
13 <quantlib-dev@lists.sf.net>. The license is also available online at
14 <http://quantlib.org/license.shtml>.
15
16 This program is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
18 FOR A PARTICULAR PURPOSE. See the license for more details.
19*/
20
21#ifndef quantlib_test_european_option_hpp
22#define quantlib_test_european_option_hpp
23
24#include <boost/test/unit_test.hpp>
25
26/* remember to document new and/or updated tests in the Doxygen
27 comment block of the corresponding class */
28
29class EuropeanOptionTest {
30 public:
31 static void testValues();
32 static void testGreekValues();
33 static void testGreeks();
34 static void testImpliedVol();
35 static void testImpliedVolWithDividends();
36 static void testImpliedVolContainment();
37 static void testJRBinomialEngines();
38 static void testCRRBinomialEngines();
39 static void testEQPBinomialEngines();
40 static void testTGEOBinomialEngines();
41 static void testTIANBinomialEngines();
42 static void testLRBinomialEngines();
43 static void testJOSHIBinomialEngines();
44 static void testFdEngines();
45 static void testIntegralEngines();
46 static void testQmcEngines();
47 static void testMcEngines();
48 static void testFFTEngines();
49 static void testLocalVolatility();
50 static void testAnalyticEngineDiscountCurve();
51 static void testPDESchemes();
52 static void testDouglasVsCrankNicolson();
53 static void testFdEngineWithNonConstantParameters();
54 static void testVanillaAndDividendEngine();
55
56 static boost::unit_test_framework::test_suite* suite();
57 static boost::unit_test_framework::test_suite* experimental();
58};
59
60
61#endif
62

source code of quantlib/test-suite/europeanoption.hpp