summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-06-22 18:13:42 +0800
committerPeng Wu <alexepico@gmail.com>2011-06-22 18:13:42 +0800
commit387de20bc3ca05f3cdaad1f83cc87c8a40c36d07 (patch)
tree9eb28fe321c3cbdcafc0da8a6b065e5b9e1baa34 /tests
parentc7aeb1c57cea4f458b3084a34397e44110297ac8 (diff)
downloadlibpinyin-387de20bc3ca05f3cdaad1f83cc87c8a40c36d07.tar.gz
libpinyin-387de20bc3ca05f3cdaad1f83cc87c8a40c36d07.tar.xz
libpinyin-387de20bc3ca05f3cdaad1f83cc87c8a40c36d07.zip
fixes a bug in test simple lookup
Diffstat (limited to 'tests')
-rw-r--r--tests/lookup/test_simple_lookup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lookup/test_simple_lookup.cpp b/tests/lookup/test_simple_lookup.cpp
index 77fa797..7e4d256 100644
--- a/tests/lookup/test_simple_lookup.cpp
+++ b/tests/lookup/test_simple_lookup.cpp
@@ -47,7 +47,7 @@ int main( int argc, char * argv[]){
Bigram system_bigram;
system_bigram.attach("../../data/bigram.db", ATTACH_READONLY);
Bigram user_bigram;
- user_bigram.attach("/tmp/bigram.db", ATTACH_CREATE|ATTACH_READWRITE);
+ user_bigram.attach(NULL, ATTACH_CREATE|ATTACH_READWRITE);
PinyinLookup pinyin_lookup(&custom, &largetable, &phrase_index,
&system_bigram, &user_bigram);