summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2013-04-10 15:55:39 +0800
committerPeng Wu <alexepico@gmail.com>2013-04-10 15:55:39 +0800
commit66d1f8c42f6cc8715402eeffe113f3ba4a65dcb9 (patch)
treef04090a67f243b391080784deebc9c384386e980
parent274f51f5af2555c4aa2b95f5c45e1468be572f18 (diff)
downloadlibpinyin-66d1f8c42f6cc8715402eeffe113f3ba4a65dcb9.tar.gz
libpinyin-66d1f8c42f6cc8715402eeffe113f3ba4a65dcb9.tar.xz
libpinyin-66d1f8c42f6cc8715402eeffe113f3ba4a65dcb9.zip
update test_table_info.cpp
-rw-r--r--tests/storage/test_table_info.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/storage/test_table_info.cpp b/tests/storage/test_table_info.cpp
index 3201074..68b4735 100644
--- a/tests/storage/test_table_info.cpp
+++ b/tests/storage/test_table_info.cpp
@@ -36,29 +36,29 @@ int main(int argc, char * argv[]) {
size_t i;
for (i = 0; i < PHRASE_INDEX_LIBRARY_COUNT; ++i) {
- const pinyin_table_info_t * tableinfo =
+ const pinyin_table_info_t * table_info =
system_table_info.get_table_info() + i;
- assert(i == tableinfo->m_dict_index);
- printf("table index:%d\n", tableinfo->m_dict_index);
+ assert(i == table_info->m_dict_index);
+ printf("table index:%d\n", table_info->m_dict_index);
- switch(tableinfo->m_file_type) {
+ switch(table_info->m_file_type) {
case NOT_USED:
printf("not used.\n");
break;
case SYSTEM_FILE:
- printf("system file:%s %s %s.\n", tableinfo->m_table_filename,
- tableinfo->m_system_filename, tableinfo->m_user_filename);
+ printf("system file:%s %s %s.\n", table_info->m_table_filename,
+ table_info->m_system_filename, table_info->m_user_filename);
break;
case DICTIONARY:
- printf("dictionary:%s %s %s.\n", tableinfo->m_table_filename,
- tableinfo->m_system_filename, tableinfo->m_user_filename);
+ printf("dictionary:%s %s %s.\n", table_info->m_table_filename,
+ table_info->m_system_filename, table_info->m_user_filename);
break;
case USER_FILE:
- printf("user file:%s.\n", tableinfo->m_user_filename);
+ printf("user file:%s.\n", table_info->m_user_filename);
break;
default: