summaryrefslogtreecommitdiffstats
path: root/tests/storage/test_ngram.cpp
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-04-20 14:24:44 +0800
committerPeng Wu <alexepico@gmail.com>2011-04-20 14:25:09 +0800
commite3b450140cd21b13122b1fec1a99b3923bb0a951 (patch)
treed361477df7482f7628c673dc3ac509429faf0e99 /tests/storage/test_ngram.cpp
parent75a02c90ca93e81117f16c44793fd825311b5774 (diff)
downloadlibpinyin-e3b450140cd21b13122b1fec1a99b3923bb0a951.tar.gz
libpinyin-e3b450140cd21b13122b1fec1a99b3923bb0a951.tar.xz
libpinyin-e3b450140cd21b13122b1fec1a99b3923bb0a951.zip
add test cases to bi-gram
Diffstat (limited to 'tests/storage/test_ngram.cpp')
-rw-r--r--tests/storage/test_ngram.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/storage/test_ngram.cpp b/tests/storage/test_ngram.cpp
index 7fc1b85..9577167 100644
--- a/tests/storage/test_ngram.cpp
+++ b/tests/storage/test_ngram.cpp
@@ -74,4 +74,9 @@ int main(int argc, char * argv[]){
phrase_token_t * token = &g_array_index(items, phrase_token_t, i);
printf("item:%d\n", *token);
}
+
+ assert(bigram.load_db("/tmp/test.db"));
+ assert(bigram.save_db("/tmp/test.db"));
+
+ return 0;
}