summaryrefslogtreecommitdiffstats
path: root/tests/storage/test_phrase_index.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/storage/test_phrase_index.cpp')
-rw-r--r--tests/storage/test_phrase_index.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/storage/test_phrase_index.cpp b/tests/storage/test_phrase_index.cpp
index ddfea8a..fa0721a 100644
--- a/tests/storage/test_phrase_index.cpp
+++ b/tests/storage/test_phrase_index.cpp
@@ -83,7 +83,9 @@ int main(int argc, char * argv[]){
const pinyin_table_info_t * phrase_files =
system_table_info.get_default_tables();
- if (!load_phrase_table(phrase_files, NULL, NULL, &phrase_index))
+ TABLE_PHONETIC_TYPE type = system_table_info.get_table_phonetic_type();
+ if (!load_phrase_table(phrase_files, NULL,
+ NULL, &phrase_index, type))
exit(ENOENT);
phrase_index.compact();