summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2015-05-20 15:51:54 +0800
committerPeng Wu <alexepico@gmail.com>2015-05-20 15:51:54 +0800
commit2f6ca082caa7be4e32d61fff80f9330ef800086f (patch)
tree3f823f67eef474259f8c55262d7be08cf9087109
parentd068b1c9e446fb5d391639ff1a78a531e2691bb9 (diff)
downloadlibpinyin-2f6ca082caa7be4e32d61fff80f9330ef800086f.tar.gz
libpinyin-2f6ca082caa7be4e32d61fff80f9330ef800086f.tar.xz
libpinyin-2f6ca082caa7be4e32d61fff80f9330ef800086f.zip
update test_table_info
-rw-r--r--tests/storage/test_table_info.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/storage/test_table_info.cpp b/tests/storage/test_table_info.cpp
index 5781c97..af727a6 100644
--- a/tests/storage/test_table_info.cpp
+++ b/tests/storage/test_table_info.cpp
@@ -27,7 +27,7 @@
int main(int argc, char * argv[]) {
setlocale(LC_ALL, "");
- SystemTableInfo system_table_info;
+ SystemTableInfo2 system_table_info;
bool retval = system_table_info.load("../../data/table.conf");
if (!retval) {
@@ -40,7 +40,7 @@ int main(int argc, char * argv[]) {
size_t i;
for (i = 0; i < PHRASE_INDEX_LIBRARY_COUNT; ++i) {
const pinyin_table_info_t * table_info =
- system_table_info.get_table_info() + i;
+ system_table_info.get_default_tables() + i;
assert(i == table_info->m_dict_index);
printf("table index:%d\n", table_info->m_dict_index);