Skip to content

Commit fae1e7f

Browse files
committed
Make the max_size() tests a bit more meaningful
1 parent 94eef0d commit fae1e7f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/bitset_test.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,8 @@ struct bitset_test
354354
max_size( const Bitset & b )
355355
{
356356
BOOST_TEST( b.max_size() > 0 );
357+
BOOST_TEST( b.max_size() >= b.size() );
358+
BOOST_TEST( b.max_size() / Bitset::bits_per_block <= boost::allocator_max_size( b.get_allocator() ) );
357359
}
358360

359361
// move constructor (absent from std::bitset)

0 commit comments

Comments
 (0)