|
Boost-Commit : |
From: jefffaust_at_[hidden]
Date: 2007-05-23 23:25:25
Author: jefffaust
Date: 2007-05-23 23:25:25 EDT (Wed, 23 May 2007)
New Revision: 4217
URL: http://svn.boost.org/trac/boost/changeset/4217
Log:
remove boost_any test since we can't support it
Removed:
sandbox/explore/libs/explore/test/boost_any.cpp
Text files modified:
sandbox/explore/libs/explore/test/Jamfile.v2 | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
Modified: sandbox/explore/libs/explore/test/Jamfile.v2
==============================================================================
--- sandbox/explore/libs/explore/test/Jamfile.v2 (original)
+++ sandbox/explore/libs/explore/test/Jamfile.v2 2007-05-23 23:25:25 EDT (Wed, 23 May 2007)
@@ -29,9 +29,6 @@
[ run boost_array.cpp ]
-# I don't think we can print an any without exhaustively
-# enumerating all possible types. DH.
-# [ run boost_any.cpp ]
[ run boost_tuple.cpp ]
[ run boost_variant.cpp ]
;
Deleted: sandbox/explore/libs/explore/test/boost_any.cpp
==============================================================================
--- sandbox/explore/libs/explore/test/boost_any.cpp 2007-05-23 23:25:25 EDT (Wed, 23 May 2007)
+++ (empty file)
@@ -1,79 +0,0 @@
-// Boost.Print library
-
-// Copyright Jared McIntyre 2007. Use, modification and
-// distribution is subject to 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)
-
-// For more information, see http://www.boost.org
-
-#define BOOST_TEST_MODULE PrintLib
-#include <boost/test/unit_test.hpp>
-#include <string>
-#include <sstream>
-#include <boost/any.hpp>
-#include "../../../boost/explore/explore.hpp"
-#include "../../../boost/explore/stream_container.hpp"
-
-BOOST_AUTO_TEST_CASE( basic_any_print_test )
-{
- std::stringstream str_out;
-
- boost::any anyVal;
- explore::print(anyVal, str_out);
- BOOST_CHECK_EQUAL(str_out.str(), "");
-
- str_out.str("");
-
- anyVal = 1;
- explore::print(anyVal, str_out);
- BOOST_CHECK_EQUAL(str_out.str(), "1");
-
- str_out.str("");
-
- anyVal = std::string("some string");
- explore::print(anyVal, str_out);
- BOOST_CHECK_EQUAL(str_out.str(), "some string");
-
- str_out.str("");
-
- std::vector<int> vi;
- vi.push_back(1);
- vi.push_back(2);
- vi.push_back(3);
- anyVal = vi;
- explore::print(anyVal, str_out);
- BOOST_CHECK_EQUAL(str_out.str(), "[1:first, 2:second, 3:third]");
-}
-
-BOOST_AUTO_TEST_CASE( basic_any_stream_test )
-{
- using namespace boost;
- std::stringstream str_out;
-
- boost::any anyVal;
- str_out << anyVal;
- BOOST_CHECK_EQUAL(str_out.str(), "");
-
- str_out.str("");
-
- anyVal = 1;
- str_out << anyVal;
- BOOST_CHECK_EQUAL(str_out.str(), "1");
-
- str_out.str("");
-
- anyVal = std::string("some string");
- str_out << anyVal;
- BOOST_CHECK_EQUAL(str_out.str(), "some string");
-
- str_out.str("");
-
- std::vector<int> vi;
- vi.push_back(1);
- vi.push_back(2);
- vi.push_back(3);
- anyVal = vi;
- str_out << anyVal;
- BOOST_CHECK_EQUAL(str_out.str(), "[1:first, 2:second, 3:third]");
-}
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