diff options
author | Peng Wu <alexepico@gmail.com> | 2015-05-20 15:51:54 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2015-05-20 15:51:54 +0800 |
commit | 2f6ca082caa7be4e32d61fff80f9330ef800086f (patch) | |
tree | 3f823f67eef474259f8c55262d7be08cf9087109 /tests/storage | |
parent | d068b1c9e446fb5d391639ff1a78a531e2691bb9 (diff) | |
download | libpinyin-2f6ca082caa7be4e32d61fff80f9330ef800086f.tar.gz libpinyin-2f6ca082caa7be4e32d61fff80f9330ef800086f.tar.xz libpinyin-2f6ca082caa7be4e32d61fff80f9330ef800086f.zip |
update test_table_info
Diffstat (limited to 'tests/storage')
-rw-r--r-- | tests/storage/test_table_info.cpp | 4 |
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); |