summaryrefslogtreecommitdiffstats
path: root/tests/storage/test_flexible_ngram.cpp
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-05-05 11:13:34 +0800
committerPeng Wu <alexepico@gmail.com>2011-05-05 11:13:34 +0800
commit5f987095add7f63c7389fc5255c74fc408351c71 (patch)
treed9ceaf3db292e659756422883352074dd79af727 /tests/storage/test_flexible_ngram.cpp
parentd91e11a3e0e3215db7b87eb902dc7e7f9974823f (diff)
downloadlibpinyin-5f987095add7f63c7389fc5255c74fc408351c71.tar.gz
libpinyin-5f987095add7f63c7389fc5255c74fc408351c71.tar.xz
libpinyin-5f987095add7f63c7389fc5255c74fc408351c71.zip
refine attach method in flexible n-gram
Diffstat (limited to 'tests/storage/test_flexible_ngram.cpp')
-rw-r--r--tests/storage/test_flexible_ngram.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/storage/test_flexible_ngram.cpp b/tests/storage/test_flexible_ngram.cpp
index 8852f59..85a36ac 100644
--- a/tests/storage/test_flexible_ngram.cpp
+++ b/tests/storage/test_flexible_ngram.cpp
@@ -36,7 +36,7 @@ int main(int argc, char * argv[]) {
assert(freq == total_freq);
FlexibleBigram<guint32, guint32, guint32> bigram("TEST");
- assert(bigram.attach("/tmp/training.db"));
+ assert(bigram.attach("/tmp/training.db", ATTACH_READWRITE|ATTACH_CREATE));
bigram.store(1, &single_gram);
assert(single_gram.insert_array_item(5, 8));
assert(single_gram.remove_array_item(1, freq));