|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r56468 - trunk/libs/unordered/test/unordered
From: daniel_james_at_[hidden]
Date: 2009-09-29 03:46:45
Author: danieljames
Date: 2009-09-29 03:46:44 EDT (Tue, 29 Sep 2009)
New Revision: 56468
URL: http://svn.boost.org/trac/boost/changeset/56468
Log:
Just remove the test since the test itself doesn't work on most compilers.
Removed:
trunk/libs/unordered/test/unordered/insert_range_tests.cpp
Text files modified:
trunk/libs/unordered/test/unordered/Jamfile.v2 | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
Modified: trunk/libs/unordered/test/unordered/Jamfile.v2
==============================================================================
--- trunk/libs/unordered/test/unordered/Jamfile.v2 (original)
+++ trunk/libs/unordered/test/unordered/Jamfile.v2 2009-09-29 03:46:44 EDT (Tue, 29 Sep 2009)
@@ -27,7 +27,6 @@
[ run move_tests.cpp : : : <test-info>always_show_run_output ]
[ run assign_tests.cpp ]
[ run insert_tests.cpp ]
- [ run insert_range_tests.cpp ]
[ run insert_stable_tests.cpp ]
[ run unnecessary_copy_tests.cpp ]
[ run erase_tests.cpp ]
Deleted: trunk/libs/unordered/test/unordered/insert_range_tests.cpp
==============================================================================
--- trunk/libs/unordered/test/unordered/insert_range_tests.cpp 2009-09-29 03:46:44 EDT (Tue, 29 Sep 2009)
+++ (empty file)
@@ -1,41 +0,0 @@
-
-// Copyright 2006-2009 Daniel James.
-// 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)
-
-#include <boost/unordered_set.hpp>
-#include <boost/unordered_map.hpp>
-#include <vector>
-#include "../helpers/test.hpp"
-#include "../objects/test.hpp"
-
-UNORDERED_AUTO_TEST(needless_copies_1) {
- std::vector<std::pair<test::object, int> > src;
- src.push_back(std::pair<test::object, int>(test::object(1, 2), 0));
-
- boost::unordered_map<test::object, double> dst;
- dst[test::object(1, 2)] = 0;
-
- test::object_count count = test::global_object_count;
- dst.insert(src.begin(), src.end());
- BOOST_TEST(count == test::global_object_count);
-}
-
-UNORDERED_AUTO_TEST(needless_copies_2) {
- test::object x(1, 2);
- std::pair<test::object&, int> src(x, 0);
-
- boost::unordered_map<test::object, double> dst;
-
- test::object_count count = test::global_object_count;
- dst.emplace(src);
- BOOST_TEST_EQ(test::global_object_count.instances, count.instances + 1);
- BOOST_TEST_EQ(test::global_object_count.constructions, count.constructions + 1);
-
- count = test::global_object_count;
- dst.emplace(src);
- BOOST_TEST_EQ(test::global_object_count.instances, count.instances);
- BOOST_TEST(test::global_object_count.constructions <= count.constructions + 1);
-}
-
-RUN_TESTS()
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