Update of /cvsroot/boost/boost/libs/bimap/test
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv12048/test
Modified Files:
test_bimap_ordered.cpp test_bimap_sequenced.cpp
Log Message:
test swap
Index: test_bimap_ordered.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/bimap/test/test_bimap_ordered.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- test_bimap_ordered.cpp 25 May 2007 01:07:12 -0000 1.1
+++ test_bimap_ordered.cpp 26 May 2007 03:10:54 -0000 1.2
@@ -152,6 +152,16 @@
b2.right = b1.right;
BOOST_CHECK( b2 == b1 );
+
+ b1.clear();
+ b2.swap(b1);
+ BOOST_CHECK( b2.empty() && !b1.empty() );
+
+ b1.left.swap( b2.left );
+ BOOST_CHECK( b1.empty() && !b2.empty() );
+
+ b1.right.swap( b2.right );
+ BOOST_CHECK( b2.empty() && !b1.empty() );
}
//--------------------------------------------------------------------
Index: test_bimap_sequenced.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/bimap/test/test_bimap_sequenced.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- test_bimap_sequenced.cpp 25 May 2007 01:07:12 -0000 1.1
+++ test_bimap_sequenced.cpp 26 May 2007 03:10:54 -0000 1.2
@@ -273,6 +273,16 @@
b2.right = b1.right;
BOOST_CHECK( b2 == b1 );
+
+ b1.clear();
+ b2.swap(b1);
+ BOOST_CHECK( b2.empty() && !b1.empty() );
+
+ b1.left.swap( b2.left );
+ BOOST_CHECK( b1.empty() && !b2.empty() );
+
+ b1.right.swap( b2.right );
+ BOOST_CHECK( b2.empty() && !b1.empty() );
}
//--------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs