mirror of
https://github.com/boostorg/dynamic_bitset.git
synced 2026-01-19 04:12:09 +00:00
Increase the test coverage
This commit is contained in:
@@ -208,6 +208,13 @@ run_test_cases()
|
|||||||
}
|
}
|
||||||
//=====================================================================
|
//=====================================================================
|
||||||
// Test b.set(pos, len)
|
// Test b.set(pos, len)
|
||||||
|
|
||||||
|
// case size is 0
|
||||||
|
{
|
||||||
|
bitset_type b( std::string( "10" ) ) ;
|
||||||
|
Tests::set_segment( b, 0, 0, true );
|
||||||
|
Tests::set_segment( b, 0, 0, false );
|
||||||
|
}
|
||||||
{ // case size is 1
|
{ // case size is 1
|
||||||
bitset_type b( std::string( "0" ) );
|
bitset_type b( std::string( "0" ) );
|
||||||
Tests::set_segment( b, 0, 1, true );
|
Tests::set_segment( b, 0, 1, true );
|
||||||
|
|||||||
@@ -480,6 +480,11 @@ run_test_cases()
|
|||||||
bitset_type a, b;
|
bitset_type a, b;
|
||||||
Tests::operator_less_than( a, b );
|
Tests::operator_less_than( a, b );
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
bitset_type a;
|
||||||
|
bitset_type b( std::string( "1" ) );
|
||||||
|
Tests::operator_less_than( a, b );
|
||||||
|
}
|
||||||
{
|
{
|
||||||
bitset_type a( std::string( "0" ) ), b( std::string( "0" ) );
|
bitset_type a( std::string( "0" ) ), b( std::string( "0" ) );
|
||||||
Tests::operator_less_than( a, b );
|
Tests::operator_less_than( a, b );
|
||||||
@@ -500,6 +505,10 @@ run_test_cases()
|
|||||||
bitset_type a( std::string( "10" ) ), b( std::string( "111" ) );
|
bitset_type a( std::string( "10" ) ), b( std::string( "111" ) );
|
||||||
Tests::operator_less_than( a, b );
|
Tests::operator_less_than( a, b );
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
bitset_type a( std::string( "11" ) ), b( std::string( "111" ) );
|
||||||
|
Tests::operator_less_than( a, b );
|
||||||
|
}
|
||||||
{
|
{
|
||||||
bitset_type a( long_string ), b( long_string );
|
bitset_type a( long_string ), b( long_string );
|
||||||
Tests::operator_less_than( a, b );
|
Tests::operator_less_than( a, b );
|
||||||
|
|||||||
Reference in New Issue
Block a user