X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=src%2Ftest_boost_time.cpp;h=d300b40543ed0d791f4e6713ea0915fe4bef5b6b;hb=c93d8c8db5ae24e01775060677f8e8e9c2afff34;hp=8fd0dea683aafa3dcc7d70f854618572fe46b77f;hpb=38898637302df34fefb4f6cc000efaf9de702d9e;p=metaproxy-moved-to-github.git diff --git a/src/test_boost_time.cpp b/src/test_boost_time.cpp index 8fd0dea..d300b40 100644 --- a/src/test_boost_time.cpp +++ b/src/test_boost_time.cpp @@ -1,5 +1,11 @@ +/* $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 +#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 */