summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-11-29 14:35:08 +0800
committerPeng Wu <alexepico@gmail.com>2012-11-29 14:35:08 +0800
commit41f09223513a444f899b0c2def7325d2259d5300 (patch)
tree35d6c1f4355f2ea0f085e6e65f0c755874d77f14 /tests
parenta94db825a915c1c02ee581495c1e97c6f573074f (diff)
downloadlibpinyin-41f09223513a444f899b0c2def7325d2259d5300.tar.gz
libpinyin-41f09223513a444f899b0c2def7325d2259d5300.tar.xz
libpinyin-41f09223513a444f899b0c2def7325d2259d5300.zip
add mask out test cases to chewing/pharse table
Diffstat (limited to 'tests')
-rw-r--r--tests/storage/test_chewing_table.cpp4
-rw-r--r--tests/storage/test_phrase_table.cpp4
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/storage/test_chewing_table.cpp b/tests/storage/test_chewing_table.cpp
index 369f726..bb25780 100644
--- a/tests/storage/test_chewing_table.cpp
+++ b/tests/storage/test_chewing_table.cpp
@@ -129,5 +129,9 @@ int main(int argc, char * argv[]) {
if (linebuf)
free(linebuf);
+
+ /* mask out all index items. */
+ largetable.mask_out(0x0, 0x0);
+
return 0;
}
diff --git a/tests/storage/test_phrase_table.cpp b/tests/storage/test_phrase_table.cpp
index eb24382..9a84d6d 100644
--- a/tests/storage/test_phrase_table.cpp
+++ b/tests/storage/test_phrase_table.cpp
@@ -67,5 +67,9 @@ int main(int argc, char * argv[]){
if ( linebuf )
free(linebuf);
+
+ /* mask out all index items. */
+ largetable.mask_out(0x0, 0x0);
+
return 0;
}