diff options
Diffstat (limited to 'tests/storage/test_flexible_ngram.cpp')
-rw-r--r-- | tests/storage/test_flexible_ngram.cpp | 2 |
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)); |