+/* $Id: test_boost_time.cpp,v 1.8 2006-06-10 14:29:12 adam Exp $
+ Copyright (c) 2005-2006, 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
-BOOST_AUTO_TEST_CASE( testboosttime1 )
+BOOST_AUTO_UNIT_TEST( testboosttime1 )
{
// test session
//std::cout << duration << std::endl;
BOOST_CHECK (duration.total_seconds() == 1);
+ BOOST_CHECK (duration.fractional_seconds() > 0);
}
catch (std::exception &e) {
* Local variables:
* c-basic-offset: 4
* indent-tabs-mode: nil
+ * c-file-style: "stroustrup"
* End:
* vim: shiftwidth=4 tabstop=8 expandtab
*/