Skip to content

Commit

Permalink
[test/unittest] uint->size_t
Browse files Browse the repository at this point in the history
  • Loading branch information
yanyiwu committed Jul 28, 2024
1 parent e972d5b commit 9e0fa60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unittest/TMd5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ const char* const TEST_STR_MD5[] = {
TEST(Md5Test, Test1) {
ASSERT_EQ(sizeof(DICT_FILE)/sizeof(DICT_FILE[0]), sizeof(DICT_FILE_MD5)/sizeof(DICT_FILE_MD5[0]));
string tmp;
for (uint i = 0; i < sizeof(DICT_FILE)/sizeof(DICT_FILE[0]); i++) {
for (size_t i = 0; i < sizeof(DICT_FILE)/sizeof(DICT_FILE[0]); i++) {
md5File(DICT_FILE[i], tmp);
ASSERT_EQ(tmp, string(DICT_FILE_MD5[i]));
}

ASSERT_EQ(sizeof(TEST_STR)/sizeof(TEST_STR[0]), sizeof(TEST_STR_MD5)/sizeof(TEST_STR_MD5[0]));
for (uint i = 0; i < sizeof(TEST_STR)/sizeof(TEST_STR[0]); i++) {
for (size_t i = 0; i < sizeof(TEST_STR)/sizeof(TEST_STR[0]); i++) {
md5String(TEST_STR[i], tmp);
ASSERT_EQ(tmp, string(TEST_STR_MD5[i]));
}
Expand Down

0 comments on commit 9e0fa60

Please sign in to comment.