summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_chewing.cpp4
-rw-r--r--tests/test_phrase.cpp4
-rw-r--r--tests/test_pinyin.cpp4
3 files changed, 12 insertions, 0 deletions
diff --git a/tests/test_chewing.cpp b/tests/test_chewing.cpp
index 5f1b000..f74cf02 100644
--- a/tests/test_chewing.cpp
+++ b/tests/test_chewing.cpp
@@ -57,7 +57,11 @@ int main(int argc, char * argv[]){
}
pinyin_free_instance(instance);
+
+ pinyin_mask_out(context, 0x0, 0x0);
+ pinyin_save(context);
pinyin_fini(context);
+
free(linebuf);
return 0;
}
diff --git a/tests/test_phrase.cpp b/tests/test_phrase.cpp
index ef32d09..36603e7 100644
--- a/tests/test_phrase.cpp
+++ b/tests/test_phrase.cpp
@@ -62,7 +62,11 @@ int main(int argc, char * argv[]){
}
pinyin_free_instance(instance);
+
+ pinyin_mask_out(context, 0x0, 0x0);
+ pinyin_save(context);
pinyin_fini(context);
+
free(linebuf);
return 0;
}
diff --git a/tests/test_pinyin.cpp b/tests/test_pinyin.cpp
index 6978d18..920963a 100644
--- a/tests/test_pinyin.cpp
+++ b/tests/test_pinyin.cpp
@@ -90,7 +90,11 @@ int main(int argc, char * argv[]){
pinyin_free_candidates(instance, candidates);
g_array_free(candidates, TRUE);
pinyin_free_instance(instance);
+
+ pinyin_mask_out(context, 0x0, 0x0);
+ pinyin_save(context);
pinyin_fini(context);
+
free(prefixbuf); free(linebuf);
return 0;
}