Skip to content

Commit 928cd36

Browse files
committed
more conversions to CHECK_EQ
see USCiLab#139
1 parent 0a262ec commit 928cd36

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

unittests/basic_string.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ void test_string_basic()
6161
iar(i_string3);
6262
}
6363

64-
CHECK(i_string == o_string);
65-
CHECK(i_string2 == o_string2);
66-
CHECK(i_string3 == o_string3);
64+
CHECK_EQ(i_string, o_string);
65+
CHECK_EQ(i_string2, o_string2);
66+
CHECK_EQ(i_string3, o_string3);
6767
}
6868
}
6969

@@ -104,7 +104,7 @@ void test_string_all()
104104
iar(i_u32string);
105105
}
106106

107-
CHECK(i_string == o_string);
107+
CHECK_EQ(i_string, o_string);
108108
check_collection( i_wstring, o_wstring );
109109
check_collection( i_u16string, o_u16string );
110110
check_collection( i_u32string, o_u32string );

unittests/bitset.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ void test_bitset()
7575
iar(i_bit32_low);
7676
}
7777

78-
CHECK( o_bit32 == i_bit32 );
79-
CHECK( o_bit65 == i_bit65 );
80-
CHECK( o_bit256 == i_bit256 );
81-
CHECK( o_bit512 == i_bit512 );
78+
CHECK_EQ( o_bit32, i_bit32 );
79+
CHECK_EQ( o_bit65, i_bit65 );
80+
CHECK_EQ( o_bit256, i_bit256 );
81+
CHECK_EQ( o_bit512, i_bit512 );
8282

83-
CHECK( o_bit32_low == i_bit32_low );
83+
CHECK_EQ( o_bit32_low, i_bit32_low );
8484
}
8585
}
8686

unittests/common.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ void check_collection( T const & a, T const & b )
7777
auto bIter = std::begin(b);
7878
auto bEnd = std::end(b);
7979

80-
CHECK( std::distance(aIter, aEnd) == std::distance(bIter, bEnd) );
80+
CHECK_EQ( std::distance(aIter, aEnd), std::distance(bIter, bEnd) );
8181

8282
for( ; aIter != aEnd; ++aIter, ++bIter )
83-
CHECK( *aIter == *bIter );
83+
CHECK_EQ( *aIter, *bIter );
8484
}
8585

8686
// Random Number Generation ===============================================

0 commit comments

Comments
 (0)