add test case
This commit is contained in:
parent
2cf01e0782
commit
c8573045f6
|
@ -38,8 +38,15 @@ class FstRegexEnv : public ::testing::Test {
|
|||
|
||||
class FstSparseSetEnv : public ::testing::Test {
|
||||
protected:
|
||||
virtual void SetUp() { set = sparSetCreate(256); }
|
||||
virtual void TearDown() { sparSetDestroy(set); }
|
||||
virtual void SetUp() { set = sparSetCreate(256); }
|
||||
virtual void TearDown() {
|
||||
// tear down
|
||||
sparSetDestroy(set);
|
||||
}
|
||||
void ReBuild(int32_t sz) {
|
||||
sparSetDestroy(set);
|
||||
set = sparSetCreate(sz);
|
||||
}
|
||||
FstSparseSet *set;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue