summaryrefslogtreecommitdiffstats
path: root/tests/storage/test_chewing_table.cpp
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2017-05-25 15:36:40 +0800
committerPeng Wu <alexepico@gmail.com>2017-05-25 15:36:40 +0800
commitcfe42385affbe99c5e4b01d2a8d7ef9d6f72d425 (patch)
tree6976cba0a15b7c20fa36deb9194c3fb47f9af72d /tests/storage/test_chewing_table.cpp
parent0bd9779cfd4be55ec600355c31806279885ba754 (diff)
downloadlibpinyin-cfe42385affbe99c5e4b01d2a8d7ef9d6f72d425.zip
libpinyin-cfe42385affbe99c5e4b01d2a8d7ef9d6f72d425.tar.gz
libpinyin-cfe42385affbe99c5e4b01d2a8d7ef9d6f72d425.tar.xz
handle zhuyin table file in tests and utils
Diffstat (limited to 'tests/storage/test_chewing_table.cpp')
-rw-r--r--tests/storage/test_chewing_table.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/storage/test_chewing_table.cpp b/tests/storage/test_chewing_table.cpp
index f417c65..7c9f28e 100644
--- a/tests/storage/test_chewing_table.cpp
+++ b/tests/storage/test_chewing_table.cpp
@@ -45,7 +45,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, &largetable, NULL, &phrase_index))
+ TABLE_PHONETIC_TYPE type = system_table_info.get_table_phonetic_type();
+ if (!load_phrase_table(phrase_files, &largetable,
+ NULL, &phrase_index, type))
exit(ENOENT);
#if 0