2
* libSpiff - XSPF playlist handling library
4
* Copyright (C) 2006 Sebastian Pipping
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Lesser General Public
8
* License as published by the Free Software Foundation; either
9
* version 2.1 of the License, or (at your option) any later version.
11
* This library is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Lesser General Public License for more details.
16
* You should have received a copy of the GNU Lesser General Public
17
* License along with this library; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
* Sebastian Pipping, webmaster@hartwork.org
23
#ifndef SPIFF_TEST_DATE_TIME_SUITE_H
24
#define SPIFF_TEST_DATE_TIME_SUITE_H 1
28
#include "CppTest/cpptest.h"
29
#include <spiff/SpiffDateTime.h>
33
class DateTimeSuite : public Test::Suite {
36
Spiff::SpiffDateTime dateTime;
40
TEST_ADD(DateTimeSuite::normal_text)
41
TEST_ADD(DateTimeSuite::combined)
42
TEST_ADD(DateTimeSuite::frac_1)
43
TEST_ADD(DateTimeSuite::frac_2)
44
TEST_ADD(DateTimeSuite::frac_3)
45
TEST_ADD(DateTimeSuite::shift_maximum_1)
46
TEST_ADD(DateTimeSuite::shift_maximum_2)
47
TEST_ADD(DateTimeSuite::shift_zero_zed)
48
TEST_ADD(DateTimeSuite::shift_zero_lowercase)
49
TEST_ADD(DateTimeSuite::shift_zero_omitted)
50
TEST_ADD(DateTimeSuite::all_maximum_2)
51
TEST_ADD(DateTimeSuite::all_maximum_1)
52
TEST_ADD(DateTimeSuite::year_too_large)
53
TEST_ADD(DateTimeSuite::month_too_large)
54
TEST_ADD(DateTimeSuite::day_too_large)
55
TEST_ADD(DateTimeSuite::hour_too_large)
56
TEST_ADD(DateTimeSuite::minute_too_large)
57
TEST_ADD(DateTimeSuite::second_too_large)
58
TEST_ADD(DateTimeSuite::shift_too_small)
59
TEST_ADD(DateTimeSuite::shift_too_large)
60
TEST_ADD(DateTimeSuite::leap_year_1)
61
TEST_ADD(DateTimeSuite::leap_year_2)
62
TEST_ADD(DateTimeSuite::leap_year_3)
71
void shift_maximum_1();
72
void shift_maximum_2();
73
void shift_zero_zed();
74
void shift_zero_lowercase();
75
void shift_zero_omitted();
78
void year_too_large();
79
void month_too_large();
81
void hour_too_large();
82
void minute_too_large();
83
void second_too_large();
84
void shift_too_small();
85
void shift_too_large();
94
#endif // SPIFF_TEST_DATE_TIME_SUITE_H