Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r72015 - sandbox/coerce/libs/coerce/test
From: vexocide_at_[hidden]
Date: 2011-05-17 05:17:38


Author: vexocide
Date: 2011-05-17 05:17:36 EDT (Tue, 17 May 2011)
New Revision: 72015
URL: http://svn.boost.org/trac/boost/changeset/72015

Log:
Removed the reserve test
Removed:
   sandbox/coerce/libs/coerce/test/reserve.cpp

Deleted: sandbox/coerce/libs/coerce/test/reserve.cpp
==============================================================================
--- sandbox/coerce/libs/coerce/test/reserve.cpp 2011-05-17 05:17:36 EDT (Tue, 17 May 2011)
+++ (empty file)
@@ -1,59 +0,0 @@
-// Copyright Jeroen Habraken 2010.
-//
-// Distributed under the Boost Software License, Version 1.0.
-// (See accompanying file ../../../LICENSE_1_0.txt or copy at
-// http://www.boost.org/LICENSE_1_0.txt)
-
-#define BOOST_TEST_MODULE reserve
-
-#include <boost/coerce.hpp>
-#include <boost/optional.hpp>
-#include <boost/test/unit_test.hpp>
-
-#include <string>
-#include <vector>
-
-BOOST_AUTO_TEST_CASE(reserve_size) {
- using boost::coerce::traits::reserve_size;
-
- BOOST_CHECK_GT(reserve_size<char>::call('\0'), 0u);
- BOOST_CHECK_GT(reserve_size<wchar_t>::call(L'\0'), 0u);
- short const test_short = 0;
- BOOST_CHECK_GT(reserve_size<short>::call(test_short), 0u);
- BOOST_CHECK_GT(reserve_size<int>::call(0), 0u);
- BOOST_CHECK_GT(reserve_size<long>::call(0l), 0u);
- unsigned short const test_unsigned_short = 0u;
- BOOST_CHECK_GT(reserve_size<unsigned short>::call(
- test_unsigned_short), 0u);
- BOOST_CHECK_GT(reserve_size<unsigned int>::call(0u), 0u);
- BOOST_CHECK_GT(reserve_size<unsigned long>::call(0ul), 0u);
- BOOST_CHECK_GT(reserve_size<float>::call(0.0f), 0u);
- BOOST_CHECK_GT(reserve_size<double>::call(0.0), 0u);
- BOOST_CHECK_GT(reserve_size<long double>::call(0.0l), 0u);
- BOOST_CHECK_GT(reserve_size<bool>::call(false), 0u);
-
- BOOST_CHECK_GT(reserve_size<boost::optional<char> >::call(
- boost::optional<char>('\0')), 0u);
-}
-
-BOOST_AUTO_TEST_CASE(has_reserve) {
- using boost::coerce::detail::has_reserve;
-
- BOOST_CHECK(!has_reserve<bool>::type());
-
- BOOST_CHECK(has_reserve<std::string>::type());
- BOOST_CHECK(has_reserve<std::wstring>::type());
-
- BOOST_CHECK(has_reserve<std::vector<char> >::type());
- BOOST_CHECK(has_reserve<std::vector<wchar_t> >::type());
-}
-
-BOOST_AUTO_TEST_CASE(call_reserve) {
- using boost::coerce::detail::call_reserve;
-
- call_reserve('\0', 1u);
-
- std::string test_string;
- call_reserve(test_string, 1u);
- BOOST_CHECK_GE(test_string.capacity(), 1u);
-}


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