提交 133beb4d 编写于 作者: C Cary Xu

other: make test case pass

上级 e890bcc6
...@@ -25,10 +25,10 @@ ...@@ -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) { ...@@ -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
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册