add test case

This commit is contained in:
yihaoDeng 2022-07-08 20:59:37 +08:00
parent 2cf01e0782
commit c8573045f6
1 changed files with 9 additions and 2 deletions

View File

@ -39,7 +39,14 @@ class FstRegexEnv : public ::testing::Test {
class FstSparseSetEnv : public ::testing::Test {
protected:
virtual void SetUp() { set = sparSetCreate(256); }
virtual void TearDown() { sparSetDestroy(set); }
virtual void TearDown() {
// tear down
sparSetDestroy(set);
}
void ReBuild(int32_t sz) {
sparSetDestroy(set);
set = sparSetCreate(sz);
}
FstSparseSet *set;
};