|
Boost-Commit : |
From: dannyh_at_[hidden]
Date: 2007-05-21 19:53:04
Author: dannyh
Date: 2007-05-21 19:53:04 EDT (Mon, 21 May 2007)
New Revision: 4161
URL: http://svn.boost.org/trac/boost/changeset/4161
Log:
fixed basic_multiset test and vector_in_set_test, which appears to be a vector_in_multiset_test.
Text files modified:
sandbox/explore/libs/explore/test/std_set.cpp | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
Modified: sandbox/explore/libs/explore/test/std_set.cpp
==============================================================================
--- sandbox/explore/libs/explore/test/std_set.cpp (original)
+++ sandbox/explore/libs/explore/test/std_set.cpp 2007-05-21 19:53:04 EDT (Mon, 21 May 2007)
@@ -50,7 +50,9 @@
explore::print(msi, str_out);
BOOST_CHECK_EQUAL(str_out.str(), "[1]");
- msi.insert(1);
+ str_out.str("");
+
+ msi.insert(1);
explore::print(msi, str_out);
BOOST_CHECK_EQUAL(str_out.str(), "[1, 1]");
@@ -72,7 +74,7 @@
vi.push_back(2);
vi.push_back(3);
- std::set<std::vector<int> > svi;
+ std::multiset<std::vector<int> > svi;
explore::print(svi, str_out);
BOOST_CHECK_EQUAL(str_out.str(), "[]");
@@ -80,12 +82,12 @@
svi.insert(vi);
explore::print(svi, str_out);
- BOOST_CHECK_EQUAL(str_out.str(), "[[1,2,3]]");
+ BOOST_CHECK_EQUAL(str_out.str(), "[[1, 2, 3]]");
str_out.str("");
svi.insert(vi);
svi.insert(vi);
explore::print(svi, str_out);
- BOOST_CHECK_EQUAL(str_out.str(), "[[1,2,3], [1,2,3], [1,2,3]]");
+ BOOST_CHECK_EQUAL(str_out.str(), "[[1, 2, 3], [1, 2, 3], [1, 2, 3]]");
}
\ No newline at end of file
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