@@ -61,9 +61,9 @@ void test_string_basic()
|
||||
iar(i_string3);
|
||||
}
|
||||
|
||||
CHECK(i_string == o_string);
|
||||
CHECK(i_string2 == o_string2);
|
||||
CHECK(i_string3 == o_string3);
|
||||
CHECK_EQ(i_string, o_string);
|
||||
CHECK_EQ(i_string2, o_string2);
|
||||
CHECK_EQ(i_string3, o_string3);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -104,7 +104,7 @@ void test_string_all()
|
||||
iar(i_u32string);
|
||||
}
|
||||
|
||||
CHECK(i_string == o_string);
|
||||
CHECK_EQ(i_string, o_string);
|
||||
check_collection( i_wstring, o_wstring );
|
||||
check_collection( i_u16string, o_u16string );
|
||||
check_collection( i_u32string, o_u32string );
|
||||
|
||||
@@ -75,12 +75,12 @@ void test_bitset()
|
||||
iar(i_bit32_low);
|
||||
}
|
||||
|
||||
CHECK( o_bit32 == i_bit32 );
|
||||
CHECK( o_bit65 == i_bit65 );
|
||||
CHECK( o_bit256 == i_bit256 );
|
||||
CHECK( o_bit512 == i_bit512 );
|
||||
CHECK_EQ( o_bit32, i_bit32 );
|
||||
CHECK_EQ( o_bit65, i_bit65 );
|
||||
CHECK_EQ( o_bit256, i_bit256 );
|
||||
CHECK_EQ( o_bit512, i_bit512 );
|
||||
|
||||
CHECK( o_bit32_low == i_bit32_low );
|
||||
CHECK_EQ( o_bit32_low, i_bit32_low );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -77,10 +77,10 @@ void check_collection( T const & a, T const & b )
|
||||
auto bIter = std::begin(b);
|
||||
auto bEnd = std::end(b);
|
||||
|
||||
CHECK( std::distance(aIter, aEnd) == std::distance(bIter, bEnd) );
|
||||
CHECK_EQ( std::distance(aIter, aEnd), std::distance(bIter, bEnd) );
|
||||
|
||||
for( ; aIter != aEnd; ++aIter, ++bIter )
|
||||
CHECK( *aIter == *bIter );
|
||||
CHECK_EQ( *aIter, *bIter );
|
||||
}
|
||||
|
||||
// Random Number Generation ===============================================
|
||||
|
||||
Reference in New Issue
Block a user