other: make test case pass
This commit is contained in:
parent
e890bcc6f4
commit
133beb4d49
|
@ -25,10 +25,10 @@
|
||||||
#pragma GCC diagnostic ignored "-Wunused-variable"
|
#pragma GCC diagnostic ignored "-Wunused-variable"
|
||||||
#pragma GCC diagnostic ignored "-Wsign-compare"
|
#pragma GCC diagnostic ignored "-Wsign-compare"
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
// int main(int argc, char **argv) {
|
||||||
testing::InitGoogleTest(&argc, argv);
|
// testing::InitGoogleTest(&argc, argv);
|
||||||
return RUN_ALL_TESTS();
|
// return RUN_ALL_TESTS();
|
||||||
}
|
// }
|
||||||
|
|
||||||
TEST(testCase, tSimpleHashTest) {
|
TEST(testCase, tSimpleHashTest) {
|
||||||
SSHashObj *pHashObj =
|
SSHashObj *pHashObj =
|
||||||
|
@ -68,6 +68,8 @@ TEST(testCase, tSimpleHashTest) {
|
||||||
tSimpleHashRemove(pHashObj, (const void *)&i);
|
tSimpleHashRemove(pHashObj, (const void *)&i);
|
||||||
ASSERT_EQ(100 - i, tSimpleHashGetSize(pHashObj));
|
ASSERT_EQ(100 - i, tSimpleHashGetSize(pHashObj));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tSimpleHashCleanup(pHashObj);
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma GCC diagnostic pop
|
#pragma GCC diagnostic pop
|
Loading…
Reference in New Issue