1/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
3/*
4This file is part of QuantLib, a free - software / open - source library
5for financial quantitative analysts and developers - http://quantlib.org/
6
7QuantLib is free software : you can redistribute it and/or modify it
8under the terms of the QuantLib license.You should have received a
9copy of the license along with this program; if not, please email
10<quantlib - dev@lists.sf.net>.The license is also available online at
11<http://quantlib.org/license.shtml>.
12
13This program is distributed in the hope that it will be useful, but WITHOUT
14ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15FOR A PARTICULAR PURPOSE.See the license for more details.
16*/
17
18#ifndef quantlib_test_time_grid_hpp
19#define quantlib_test_time_grid_hpp
20
21#include <boost/test/unit_test.hpp>
22
23class TimeGridTest {
24public:
25 static void testConstructorAdditionalSteps();
26 static void testConstructorMandatorySteps();
27 static void testConstructorEvenSteps();
28 static void testConstructorEmptyIterator();
29 static void testConstructorNegativeValuesInIterator();
30
31 static void testClosestIndex();
32 static void testClosestTime();
33 static void testMandatoryTimes();
34
35 static boost::unit_test_framework::test_suite* suite();
36};
37
38#endif
39

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