diff options
author | Peng Wu <alexepico@gmail.com> | 2011-04-20 14:24:44 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-04-20 14:25:09 +0800 |
commit | e3b450140cd21b13122b1fec1a99b3923bb0a951 (patch) | |
tree | d361477df7482f7628c673dc3ac509429faf0e99 /tests | |
parent | 75a02c90ca93e81117f16c44793fd825311b5774 (diff) | |
download | libpinyin-e3b450140cd21b13122b1fec1a99b3923bb0a951.tar.gz libpinyin-e3b450140cd21b13122b1fec1a99b3923bb0a951.tar.xz libpinyin-e3b450140cd21b13122b1fec1a99b3923bb0a951.zip |
add test cases to bi-gram
Diffstat (limited to 'tests')
-rw-r--r-- | tests/storage/test_ngram.cpp | 5 |
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; } |