$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r66335 - sandbox/chrono/libs/chrono/test/time_point/comparisons
From: vicente.botet_at_[hidden]
Date: 2010-11-01 17:35:00
Author: viboes
Date: 2010-11-01 17:34:59 EDT (Mon, 01 Nov 2010)
New Revision: 66335
URL: http://svn.boost.org/trac/boost/changeset/66335
Log:
Chrono: Refactor tests
Removed:
   sandbox/chrono/libs/chrono/test/time_point/comparisons/op_equal.fail.cpp
   sandbox/chrono/libs/chrono/test/time_point/comparisons/op_equal.pass.cpp
   sandbox/chrono/libs/chrono/test/time_point/comparisons/op_less.fail.cpp
   sandbox/chrono/libs/chrono/test/time_point/comparisons/op_less.pass.cpp
Deleted: sandbox/chrono/libs/chrono/test/time_point/comparisons/op_equal.fail.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/test/time_point/comparisons/op_equal.fail.cpp	2010-11-01 17:34:59 EDT (Mon, 01 Nov 2010)
+++ (empty file)
@@ -1,23 +0,0 @@
-//  Copyright 2010 Vicente J. Botet Escriba
-//  Distributed under the Boost Software License, Version 1.0.
-//  See http://www.boost.org/LICENSE_1_0.txt
-
-// time_points with different clocks should not compare
-
-#include <boost/chrono.hpp>
-
-#include "../../clock.h"
-
-void test()
-{
-    typedef boost::chrono::system_clock Clock1;
-    typedef Clock                     Clock2;
-    typedef boost::chrono::milliseconds Duration1;
-    typedef boost::chrono::microseconds Duration2;
-    typedef boost::chrono::time_point<Clock1, Duration1> T1;
-    typedef boost::chrono::time_point<Clock2, Duration2> T2;
-
-    T1 t1(Duration1(3));
-    T2 t2(Duration2(3000));
-    t1 == t2;
-}
Deleted: sandbox/chrono/libs/chrono/test/time_point/comparisons/op_equal.pass.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/test/time_point/comparisons/op_equal.pass.cpp	2010-11-01 17:34:59 EDT (Mon, 01 Nov 2010)
+++ (empty file)
@@ -1,42 +0,0 @@
-//  Copyright 2010 Vicente J. Botet Escriba
-//  Distributed under the Boost Software License, Version 1.0.
-//  See http://www.boost.org/LICENSE_1_0.txt
-
-#include <boost/chrono.hpp>
-#include <boost/detail/lightweight_test.hpp>
-
-int main()
-{
-    typedef boost::chrono::system_clock Clock;
-    typedef boost::chrono::milliseconds Duration1;
-    typedef boost::chrono::microseconds Duration2;
-    typedef boost::chrono::time_point<Clock, Duration1> T1;
-    typedef boost::chrono::time_point<Clock, Duration2> T2;
-
-    {
-    T1 t1(Duration1(3));
-    T1 t2(Duration1(3));
-    BOOST_TEST( (t1 == t2));
-    BOOST_TEST(!(t1 != t2));
-    }
-    {
-    T1 t1(Duration1(3));
-    T1 t2(Duration1(4));
-    BOOST_TEST(!(t1 == t2));
-    BOOST_TEST( (t1 != t2));
-    }
-    {
-    T1 t1(Duration1(3));
-    T2 t2(Duration2(3000));
-    BOOST_TEST( (t1 == t2));
-    BOOST_TEST(!(t1 != t2));
-    }
-    {
-    T1 t1(Duration1(3));
-    T2 t2(Duration2(3001));
-    BOOST_TEST(!(t1 == t2));
-    BOOST_TEST( (t1 != t2));
-    }
-
-    return boost::report_errors();
-}
Deleted: sandbox/chrono/libs/chrono/test/time_point/comparisons/op_less.fail.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/test/time_point/comparisons/op_less.fail.cpp	2010-11-01 17:34:59 EDT (Mon, 01 Nov 2010)
+++ (empty file)
@@ -1,23 +0,0 @@
-//  Copyright 2010 Vicente J. Botet Escriba
-//  Distributed under the Boost Software License, Version 1.0.
-//  See http://www.boost.org/LICENSE_1_0.txt
-
-// time_points with different clocks should not compare
-
-#include <boost/chrono.hpp>
-
-#include "../../clock.h"
-
-void test()
-{
-    typedef boost::chrono::system_clock Clock1;
-    typedef Clock                     Clock2;
-    typedef boost::chrono::milliseconds Duration1;
-    typedef boost::chrono::microseconds Duration2;
-    typedef boost::chrono::time_point<Clock1, Duration1> T1;
-    typedef boost::chrono::time_point<Clock2, Duration2> T2;
-
-    T1 t1(Duration1(3));
-    T2 t2(Duration2(3000));
-    t1 < t2;
-}
Deleted: sandbox/chrono/libs/chrono/test/time_point/comparisons/op_less.pass.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/test/time_point/comparisons/op_less.pass.cpp	2010-11-01 17:34:59 EDT (Mon, 01 Nov 2010)
+++ (empty file)
@@ -1,50 +0,0 @@
-//  Copyright 2010 Vicente J. Botet Escriba
-//  Distributed under the Boost Software License, Version 1.0.
-//  See http://www.boost.org/LICENSE_1_0.txt
-
-#include <boost/chrono.hpp>
-#include <boost/detail/lightweight_test.hpp>
-
-int main()
-{
-    typedef boost::chrono::system_clock Clock;
-    typedef boost::chrono::milliseconds Duration1;
-    typedef boost::chrono::microseconds Duration2;
-    typedef boost::chrono::time_point<Clock, Duration1> T1;
-    typedef boost::chrono::time_point<Clock, Duration2> T2;
-
-    {
-    T1 t1(Duration1(3));
-    T1 t2(Duration1(3));
-    BOOST_TEST(!(t1 <  t2));
-    BOOST_TEST(!(t1 >  t2));
-    BOOST_TEST( (t1 <= t2));
-    BOOST_TEST( (t1 >= t2));
-    }
-    {
-    T1 t1(Duration1(3));
-    T1 t2(Duration1(4));
-    BOOST_TEST( (t1 <  t2));
-    BOOST_TEST(!(t1 >  t2));
-    BOOST_TEST( (t1 <= t2));
-    BOOST_TEST(!(t1 >= t2));
-    }
-    {
-    T1 t1(Duration1(3));
-    T2 t2(Duration2(3000));
-    BOOST_TEST(!(t1 <  t2));
-    BOOST_TEST(!(t1 >  t2));
-    BOOST_TEST( (t1 <= t2));
-    BOOST_TEST( (t1 >= t2));
-    }
-    {
-    T1 t1(Duration1(3));
-    T2 t2(Duration2(3001));
-    BOOST_TEST( (t1 <  t2));
-    BOOST_TEST(!(t1 >  t2));
-    BOOST_TEST( (t1 <= t2));
-    BOOST_TEST(!(t1 >= t2));
-    }
-
-    return boost::report_errors();
-}