summaryrefslogtreecommitdiffstats
path: root/tests/lookup/test_pinyin_lookup.cpp
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2015-05-21 14:47:06 +0800
committerPeng Wu <alexepico@gmail.com>2015-05-21 14:47:06 +0800
commit7a5a8b88cef79e3f5db45a860201d5d5d9841d52 (patch)
tree44803cf8f42332e7167a5cc52e19809620f3ccb4 /tests/lookup/test_pinyin_lookup.cpp
parentc0442398c0bed7f1f4c67bfd338faf3e37904547 (diff)
downloadlibpinyin-7a5a8b88cef79e3f5db45a860201d5d5d9841d52.tar.gz
libpinyin-7a5a8b88cef79e3f5db45a860201d5d5d9841d52.tar.xz
libpinyin-7a5a8b88cef79e3f5db45a860201d5d5d9841d52.zip
update test cases
Diffstat (limited to 'tests/lookup/test_pinyin_lookup.cpp')
-rw-r--r--tests/lookup/test_pinyin_lookup.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lookup/test_pinyin_lookup.cpp b/tests/lookup/test_pinyin_lookup.cpp
index 3175db0..525cd76 100644
--- a/tests/lookup/test_pinyin_lookup.cpp
+++ b/tests/lookup/test_pinyin_lookup.cpp
@@ -28,7 +28,7 @@
size_t bench_times = 100;
int main( int argc, char * argv[]){
- SystemTableInfo system_table_info;
+ SystemTableInfo2 system_table_info;
bool retval = system_table_info.load("../../data/table.conf");
if (!retval) {
@@ -45,7 +45,7 @@ int main( int argc, char * argv[]){
largetable.load(options, chunk, NULL);
const pinyin_table_info_t * phrase_files =
- system_table_info.get_table_info();
+ system_table_info.get_default_tables();
FacadePhraseIndex phrase_index;
if (!load_phrase_index(phrase_files, &phrase_index))