Skip to content

Commit

Permalink
more conversions to CHECK_EQ
Browse files Browse the repository at this point in the history
  • Loading branch information
AzothAmmo committed Nov 1, 2016
1 parent 0a262ec commit 928cd36
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions unittests/basic_string.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down Expand Up @@ -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 );
Expand Down
10 changes: 5 additions & 5 deletions unittests/bitset.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
}

Expand Down
4 changes: 2 additions & 2 deletions unittests/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ===============================================
Expand Down

0 comments on commit 928cd36

Please sign in to comment.