Update of /cvsroot/boost/boost/libs/dynamic_bitset
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv23155
Modified Files:
dyn_bitset_unit_tests3.cpp
Log Message:
updated copyright notice (years); used <assert.h>; included subdir main header;
more count() and operator< tests; minor fixes
Index: dyn_bitset_unit_tests3.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/dynamic_bitset/dyn_bitset_unit_tests3.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- dyn_bitset_unit_tests3.cpp 29 May 2006 16:43:42 -0000 1.7
+++ dyn_bitset_unit_tests3.cpp 25 Jun 2006 19:31:06 -0000 1.8
@@ -1,6 +1,6 @@
// --------------------------------------------------------
// (C) Copyright Jeremy Siek 2001.
-// (C) Copyright Gennaro Prota 2003 - 2004.
+// (C) Copyright Gennaro Prota 2003 - 2006.
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
@@ -9,8 +9,9 @@
// -----------------------------------------------------------
+#include <assert.h>
#include "bitset_test.hpp"
-#include "boost/dynamic_bitset.hpp"
+#include "boost/dynamic_bitset/dynamic_bitset.hpp"
#include "boost/limits.hpp"
#include "boost/config.hpp"
@@ -18,7 +19,7 @@
template <typename Block>
void run_test_cases( BOOST_EXPLICIT_TEMPLATE_TYPE(Block) )
{
- // a bunch of typedefs to have handy later on
+ // a bunch of typedefs which will be handy later on
typedef boost::dynamic_bitset<Block> bitset_type;
typedef bitset_test<bitset_type> Tests;
// typedef typename bitset_type::size_type size_type; // unusable with
Borland 5.5.1
@@ -52,9 +53,8 @@
Tests::to_ulong(b);
}
{
- Block all_ones = ~Block(0);
boost::dynamic_bitset<Block> b(bitset_type::bits_per_block,
- static_cast<unsigned long>(all_ones));
+ static_cast<unsigned long>(-1));
Tests::to_ulong(b);
}
{
@@ -96,6 +96,14 @@
Tests::count(b);
}
{
+ boost::dynamic_bitset<Block> b(std::string("1"));
+ Tests::count(b);
+ }
+ {
+ boost::dynamic_bitset<Block> b(8, 255ul);
+ Tests::count(b);
+ }
+ {
boost::dynamic_bitset<Block> b(long_string);
Tests::count(b);
}
@@ -394,6 +402,10 @@
Tests::operator_less_than(a, b);
}
{
+ boost::dynamic_bitset<Block> a(std::string("10")), b(std::string("11"));
+ Tests::operator_less_than(a, b);
+ }
+ {
boost::dynamic_bitset<Block> a(long_string), b(long_string);
Tests::operator_less_than(a, b);
}
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs