From e3b450140cd21b13122b1fec1a99b3923bb0a951 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Wed, 20 Apr 2011 14:24:44 +0800 Subject: add test cases to bi-gram --- tests/storage/test_ngram.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/storage/test_ngram.cpp') 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; } -- cgit