more conversions to CHECK_EQ

see #139
This commit is contained in:
Shane Grant
2016-11-01 11:41:28 -07:00
parent 0a262ece48
commit 928cd36335
3 changed files with 11 additions and 11 deletions
+4 -4
View File
@@ -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 );
+5 -5
View File
@@ -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 );
}
}
+2 -2
View File
@@ -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 ===============================================