396 |
27 Jun 07 |
peter |
// $Id$ |
396 |
27 Jun 07 |
peter |
2 |
|
396 |
27 Jun 07 |
peter |
3 |
/* |
1635 |
30 Mar 23 |
peter |
Copyright (C) 2007 Peter Johansson |
1635 |
30 Mar 23 |
peter |
Copyright (C) 2008 Jari Häkkinen, Peter Johansson |
1635 |
30 Mar 23 |
peter |
Copyright (C) 2010, 2023 Peter Johansson |
396 |
27 Jun 07 |
peter |
7 |
|
687 |
04 Aug 08 |
peter |
This file is part of svndigest, http://dev.thep.lu.se/svndigest |
396 |
27 Jun 07 |
peter |
9 |
|
396 |
27 Jun 07 |
peter |
svndigest is free software; you can redistribute it and/or modify it |
396 |
27 Jun 07 |
peter |
under the terms of the GNU General Public License as published by |
693 |
11 Sep 08 |
jari |
the Free Software Foundation; either version 3 of the License, or |
396 |
27 Jun 07 |
peter |
(at your option) any later version. |
396 |
27 Jun 07 |
peter |
14 |
|
396 |
27 Jun 07 |
peter |
svndigest is distributed in the hope that it will be useful, but |
396 |
27 Jun 07 |
peter |
WITHOUT ANY WARRANTY; without even the implied warranty of |
396 |
27 Jun 07 |
peter |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
396 |
27 Jun 07 |
peter |
General Public License for more details. |
396 |
27 Jun 07 |
peter |
19 |
|
396 |
27 Jun 07 |
peter |
You should have received a copy of the GNU General Public License |
693 |
11 Sep 08 |
jari |
along with svndigest. If not, see <http://www.gnu.org/licenses/>. |
396 |
27 Jun 07 |
peter |
22 |
*/ |
396 |
27 Jun 07 |
peter |
23 |
|
1619 |
12 Mar 23 |
peter |
24 |
#include <config.h> |
1619 |
12 Mar 23 |
peter |
25 |
|
1162 |
13 Aug 10 |
peter |
26 |
#include "Suite.h" |
1162 |
13 Aug 10 |
peter |
27 |
|
1119 |
04 Jul 10 |
peter |
28 |
#include "lib/Date.h" |
396 |
27 Jun 07 |
peter |
29 |
|
396 |
27 Jun 07 |
peter |
30 |
#include <iostream> |
396 |
27 Jun 07 |
peter |
31 |
#include <string> |
396 |
27 Jun 07 |
peter |
32 |
|
1162 |
13 Aug 10 |
peter |
33 |
int main(int argc, char* argv[]) |
396 |
27 Jun 07 |
peter |
34 |
{ |
396 |
27 Jun 07 |
peter |
35 |
using namespace theplu::svndigest; |
1162 |
13 Aug 10 |
peter |
36 |
test::Suite suite(argc, argv); |
396 |
27 Jun 07 |
peter |
37 |
|
396 |
27 Jun 07 |
peter |
38 |
Date date("2007-06-27T15:40:52.123456Z"); |
396 |
27 Jun 07 |
peter |
39 |
if (date("%H:%M")!="15:40"){ |
1162 |
13 Aug 10 |
peter |
40 |
suite.add(false); |
396 |
27 Jun 07 |
peter |
41 |
std::cerr << "date(\"%H:%M\") returns: " << date("%H:%M") |
396 |
27 Jun 07 |
peter |
42 |
<< "\nexpected '15:40'" << std::endl; |
396 |
27 Jun 07 |
peter |
43 |
} |
396 |
27 Jun 07 |
peter |
44 |
|
1162 |
13 Aug 10 |
peter |
45 |
return suite.exit_status(); |
396 |
27 Jun 07 |
peter |
46 |
} |
396 |
27 Jun 07 |
peter |
47 |
|