Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r66326 - sandbox/chrono/libs/chrono/test/duration/special
From: vicente.botet_at_[hidden]
Date: 2010-11-01 15:17:59


Author: viboes
Date: 2010-11-01 15:17:58 EDT (Mon, 01 Nov 2010)
New Revision: 66326
URL: http://svn.boost.org/trac/boost/changeset/66326

Log:
Chrono: Refactor tests

Removed:
   sandbox/chrono/libs/chrono/test/duration/special/max.pass.cpp
   sandbox/chrono/libs/chrono/test/duration/special/min.pass.cpp
   sandbox/chrono/libs/chrono/test/duration/special/zero.pass.cpp

Deleted: sandbox/chrono/libs/chrono/test/duration/special/max.pass.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/test/duration/special/max.pass.cpp 2010-11-01 15:17:58 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
-
-#include <boost/chrono.hpp>
-#include <boost/detail/lightweight_test.hpp>
-
-#include "../../rep.h"
-
-template <class D>
-void test()
-{
- typedef typename D::rep Rep;
- Rep max_rep = (boost::chrono::duration_values<Rep>::max)();
- BOOST_TEST((D::max)().count() == max_rep);
-}
-
-int main()
-{
- test<boost::chrono::duration<int> >();
- test<boost::chrono::duration<Rep> >();
- return boost::report_errors();
-}

Deleted: sandbox/chrono/libs/chrono/test/duration/special/min.pass.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/test/duration/special/min.pass.cpp 2010-11-01 15:17:58 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
-
-#include <boost/chrono.hpp>
-#include <boost/detail/lightweight_test.hpp>
-
-#include "../../rep.h"
-
-template <class D>
-void test()
-{
- typedef typename D::rep Rep;
- Rep min_rep = (boost::chrono::duration_values<Rep>::min)();
- BOOST_TEST((D::min)().count() == min_rep);
-}
-
-int main()
-{
- test<boost::chrono::duration<int> >();
- test<boost::chrono::duration<Rep> >();
- return boost::report_errors();
-}

Deleted: sandbox/chrono/libs/chrono/test/duration/special/zero.pass.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/test/duration/special/zero.pass.cpp 2010-11-01 15:17:58 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
-
-#include <boost/chrono.hpp>
-#include <boost/detail/lightweight_test.hpp>
-
-#include "../../rep.h"
-
-template <class D>
-void test()
-{
- typedef typename D::rep Rep;
- Rep zero_rep = boost::chrono::duration_values<Rep>::zero();
- BOOST_TEST(D::zero().count() == zero_rep);
-}
-
-int main()
-{
- test<boost::chrono::duration<int> >();
- test<boost::chrono::duration<Rep> >();
- return boost::report_errors();
-}


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