Changeset 1162 for trunk/test/date_test.cc
- Timestamp:
- Aug 13, 2010, 7:30:03 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/date_test.cc
r1127 r1162 21 21 */ 22 22 23 #include "Suite.h" 24 23 25 #include "lib/Date.h" 24 26 … … 26 28 #include <string> 27 29 28 int main( const int argc,constchar* argv[])30 int main(int argc, char* argv[]) 29 31 { 30 32 using namespace theplu::svndigest; 31 bool ok=true;33 test::Suite suite(argc, argv); 32 34 33 35 Date date("2007-06-27T15:40:52.123456Z"); 34 36 if (date("%H:%M")!="15:40"){ 35 ok = false;37 suite.add(false); 36 38 std::cerr << "date(\"%H:%M\") returns: " << date("%H:%M") 37 39 << "\nexpected '15:40'" << std::endl; 38 40 } 39 41 40 if (ok) 41 return 0; 42 return -1; 42 return suite.exit_status(); 43 43 } 44 44
Note: See TracChangeset
for help on using the changeset viewer.