diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2015-04-08 03:09:47 +0000 |
---|---|---|
committer | <> | 2015-05-05 14:37:32 +0000 |
commit | f2541bb90af059680aa7036f315f052175999355 (patch) | |
tree | a5b214744b256f07e1dc2bd7273035a7808c659f /libs/dynamic_bitset/dyn_bitset_unit_tests1.cpp | |
parent | ed232fdd34968697a68783b3195b1da4226915b5 (diff) | |
download | boost-tarball-master.tar.gz |
Imported from /home/lorry/working-area/delta_boost-tarball/boost_1_58_0.tar.bz2.HEADboost_1_58_0master
Diffstat (limited to 'libs/dynamic_bitset/dyn_bitset_unit_tests1.cpp')
-rw-r--r-- | libs/dynamic_bitset/dyn_bitset_unit_tests1.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libs/dynamic_bitset/dyn_bitset_unit_tests1.cpp b/libs/dynamic_bitset/dyn_bitset_unit_tests1.cpp index 31299d1ee..51b2ef942 100644 --- a/libs/dynamic_bitset/dyn_bitset_unit_tests1.cpp +++ b/libs/dynamic_bitset/dyn_bitset_unit_tests1.cpp @@ -2,6 +2,7 @@ // Copyright (c) 2001 Jeremy Siek // Copyright (c) 2003-2006 Gennaro Prota // Copyright (c) 2014 Ahmed Charles +// Copyright (c) 2014 Riccardo Marcangelo // // Copyright (c) 2014 Glen Joseph Fernandes // glenfe at live dot com @@ -379,6 +380,25 @@ void run_test_cases( BOOST_EXPLICIT_TEMPLATE_TYPE(Block) ) Tests::clear(a); } //===================================================================== + // Test pop back + { + boost::dynamic_bitset<Block> a(std::string("01")); + Tests::pop_back(a); + } + { + boost::dynamic_bitset<Block> a(std::string("10")); + Tests::pop_back(a); + } + { + const int size_to_fill_all_blocks = 4 * bits_per_block; + boost::dynamic_bitset<Block> a(size_to_fill_all_blocks, 255ul); + Tests::pop_back(a); + } + { + boost::dynamic_bitset<Block> a(long_string); + Tests::pop_back(a); + } + //===================================================================== // Test append bit { boost::dynamic_bitset<Block> a; |