add test case
This commit is contained in:
parent
2cf01e0782
commit
c8573045f6
|
@ -39,7 +39,14 @@ class FstRegexEnv : public ::testing::Test {
|
||||||
class FstSparseSetEnv : public ::testing::Test {
|
class FstSparseSetEnv : public ::testing::Test {
|
||||||
protected:
|
protected:
|
||||||
virtual void SetUp() { set = sparSetCreate(256); }
|
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;
|
FstSparseSet *set;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue