Year 2007.
[metaproxy-moved-to-github.git] / src / test_boost_time.cpp
index 8fd0dea..56e9bdd 100644 (file)
@@ -1,5 +1,11 @@
+/* $Id: test_boost_time.cpp,v 1.9 2007-01-25 14:05:54 adam Exp $
+   Copyright (c) 2005-2007, Index Data.
+
+   See the LICENSE file for details
+ */
 #include <iostream>
 
+#include "config.hpp"
 #include "boost/date_time/posix_time/posix_time.hpp"
 
 #define BOOST_AUTO_TEST_MAIN
@@ -9,7 +15,7 @@ using namespace boost::unit_test;
 
 
 
-BOOST_AUTO_TEST_CASE( testboosttime1 ) 
+BOOST_AUTO_UNIT_TEST( testboosttime1 ) 
 {
 
     // test session 
@@ -32,6 +38,7 @@ BOOST_AUTO_TEST_CASE( testboosttime1 )
         //std::cout << duration << std::endl;
         
         BOOST_CHECK (duration.total_seconds() == 1);
+        BOOST_CHECK (duration.fractional_seconds() > 0);
         
     }
     catch (std::exception &e) {
@@ -47,6 +54,7 @@ BOOST_AUTO_TEST_CASE( testboosttime1 )
  * Local variables:
  * c-basic-offset: 4
  * indent-tabs-mode: nil
+ * c-file-style: "stroustrup"
  * End:
  * vim: shiftwidth=4 tabstop=8 expandtab
  */