Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r82572 - trunk/libs/chrono/test/io
From: vicente.botet_at_[hidden]
Date: 2013-01-20 15:00:00


Author: viboes
Date: 2013-01-20 15:00:00 EST (Sun, 20 Jan 2013)
New Revision: 82572
URL: http://svn.boost.org/trac/boost/changeset/82572

Log:
Thread: uncomment valid tests in time_point_output.
Text files modified:
   trunk/libs/chrono/test/io/time_point_output.cpp | 42 +++++++++++++++++++--------------------
   1 files changed, 20 insertions(+), 22 deletions(-)

Modified: trunk/libs/chrono/test/io/time_point_output.cpp
==============================================================================
--- trunk/libs/chrono/test/io/time_point_output.cpp (original)
+++ trunk/libs/chrono/test/io/time_point_output.cpp 2013-01-20 15:00:00 EST (Sun, 20 Jan 2013)
@@ -135,30 +135,28 @@
   using namespace boost::chrono;
   using namespace boost;
 
+ test_good_system_clock("1970-01-01 02:00:00.000000 +0000", hours(2), duration_style::prefix);
+ test_good_system_clock("1970-01-01 02:00:00.000000 +0000", hours(2), duration_style::symbol);
+
+ test_good_prefix_system_clock("1970-01-01 02:00:00.000000 +0000", hours(2));
+ test_good_prefix_system_clock("1970-01-01 00:02:00.000000 +0000", minutes(2));
+ test_good_prefix_system_clock("1970-01-01 00:00:02.000000 +0000", seconds(2));
+ test_good_prefix_system_clock("1970-01-01 00:00:01.000000 +0000", seconds(1));
   test_good_prefix_system_clock("1969-12-31 23:59:59.000000 +0000", seconds(-1));
   test_good_prefix_system_clock("1970-01-01 00:00:00.000000 +0000", seconds(0));
-// test_good_system_clock("1970-01-01 02:00:00.000000 +0000", hours(2), duration_style::prefix);
-// test_good_system_clock("1970-01-01 02:00:00.000000 +0000", hours(2), duration_style::symbol);
-//
-// test_good_prefix_system_clock("1970-01-01 02:00:00.000000 +0000", hours(2));
-// test_good_prefix_system_clock("1970-01-01 00:02:00.000000 +0000", minutes(2));
-// test_good_prefix_system_clock("1970-01-01 00:00:02.000000 +0000", seconds(2));
-// test_good_prefix_system_clock("1970-01-01 00:00:01.000000 +0000", seconds(1));
-// test_good_prefix_system_clock("1969-12-31 23:59:59.000000 +0000", seconds(-1));
-// test_good_prefix_system_clock("1970-01-01 00:00:00.000000 +0000", seconds(0));
-// test_good_prefix_system_clock("1970-01-01 00:00:00.002000 +0000", milliseconds(2));
-// test_good_prefix_system_clock("1970-01-01 00:00:00.000002 +0000", microseconds(2));
-// test_good_prefix_system_clock("1970-01-01 00:00:00.000000 +0000", nanoseconds(2));
-// test_good_prefix_system_clock("1970-01-01 00:00:00.200000 +0000", duration<boost::int_least64_t, deci> (2));
-// test_good_prefix_system_clock("1970-01-01 00:00:00.066667 +0000", duration<boost::int_least64_t, ratio<1, 30> > (2));
-//
-// test_good_symbol_system_clock("1970-01-01 02:00:00.000000 +0000", hours(2));
-// test_good_symbol_system_clock("1970-01-01 00:02:00.000000 +0000", minutes(2));
-// test_good_symbol_system_clock("1970-01-01 00:00:02.000000 +0000", seconds(2));
-// test_good_symbol_system_clock("1970-01-01 00:00:00.002000 +0000", milliseconds(2));
-// test_good_symbol_system_clock("1970-01-01 00:00:00.000000 +0000", nanoseconds(2));
-// test_good_symbol_system_clock("1970-01-01 00:00:00.200000 +0000", duration<boost::int_least64_t, deci> (2));
-// test_good_symbol_system_clock("1970-01-01 00:00:00.066667 +0000", duration<boost::int_least64_t, ratio<1, 30> > (2));
+ test_good_prefix_system_clock("1970-01-01 00:00:00.002000 +0000", milliseconds(2));
+ test_good_prefix_system_clock("1970-01-01 00:00:00.000002 +0000", microseconds(2));
+ test_good_prefix_system_clock("1970-01-01 00:00:00.000000 +0000", nanoseconds(2));
+ test_good_prefix_system_clock("1970-01-01 00:00:00.200000 +0000", duration<boost::int_least64_t, deci> (2));
+ test_good_prefix_system_clock("1970-01-01 00:00:00.066667 +0000", duration<boost::int_least64_t, ratio<1, 30> > (2));
+
+ test_good_symbol_system_clock("1970-01-01 02:00:00.000000 +0000", hours(2));
+ test_good_symbol_system_clock("1970-01-01 00:02:00.000000 +0000", minutes(2));
+ test_good_symbol_system_clock("1970-01-01 00:00:02.000000 +0000", seconds(2));
+ test_good_symbol_system_clock("1970-01-01 00:00:00.002000 +0000", milliseconds(2));
+ test_good_symbol_system_clock("1970-01-01 00:00:00.000000 +0000", nanoseconds(2));
+ test_good_symbol_system_clock("1970-01-01 00:00:00.200000 +0000", duration<boost::int_least64_t, deci> (2));
+ test_good_symbol_system_clock("1970-01-01 00:00:00.066667 +0000", duration<boost::int_least64_t, ratio<1, 30> > (2));
 }
 #endif
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk