summaryrefslogtreecommitdiffstats
path: root/tests/storage/test_table_info.cpp
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2022-06-06 11:29:16 +0800
committerPeng Wu <alexepico@gmail.com>2022-06-06 11:29:16 +0800
commit5f3df104b5ac0c3497a48cfc476eb3eedf1e543b (patch)
treef05013c0258b95561d8cb5f5f108ca56ebb74c03 /tests/storage/test_table_info.cpp
parenta307b3e60b0b93310eb7efd165659d84d8752a56 (diff)
downloadlibpinyin-5f3df104b5ac0c3497a48cfc476eb3eedf1e543b.tar.gz
libpinyin-5f3df104b5ac0c3497a48cfc476eb3eedf1e543b.tar.xz
libpinyin-5f3df104b5ac0c3497a48cfc476eb3eedf1e543b.zip
Use check_result macro in tests directory
Diffstat (limited to 'tests/storage/test_table_info.cpp')
-rw-r--r--tests/storage/test_table_info.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/storage/test_table_info.cpp b/tests/storage/test_table_info.cpp
index e2e4893..4de1947 100644
--- a/tests/storage/test_table_info.cpp
+++ b/tests/storage/test_table_info.cpp
@@ -44,7 +44,7 @@ void dump_table_info(const pinyin_table_info_t * table_info) {
break;
default:
- assert(false);
+ assert(FALSE);
}
}
@@ -90,8 +90,8 @@ int main(int argc, char * argv[]) {
retval = user_table_info.is_conform(&system_table_info);
assert(retval);
- assert(user_table_info.save("/tmp/user.conf"));
- assert(user_table_info.load("/tmp/user.conf"));
+ check_result(user_table_info.save("/tmp/user.conf"));
+ check_result(user_table_info.load("/tmp/user.conf"));
retval = user_table_info.is_conform(&system_table_info);
assert(retval);