summaryrefslogtreecommitdiffstats
path: root/tests/include
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/include
parenta307b3e60b0b93310eb7efd165659d84d8752a56 (diff)
downloadlibpinyin-5f3df104b5ac0c3497a48cfc476eb3eedf1e543b.tar.gz
libpinyin-5f3df104b5ac0c3497a48cfc476eb3eedf1e543b.tar.xz
libpinyin-5f3df104b5ac0c3497a48cfc476eb3eedf1e543b.zip
Use check_result macro in tests directory
Diffstat (limited to 'tests/include')
-rw-r--r--tests/include/test_memory_chunk.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/include/test_memory_chunk.cpp b/tests/include/test_memory_chunk.cpp
index 5042882..f496e4d 100644
--- a/tests/include/test_memory_chunk.cpp
+++ b/tests/include/test_memory_chunk.cpp
@@ -55,13 +55,13 @@ int main(int argc, char * argv[]){
printf("%d\t%d\n", *p3, *(p3+1));
int tmp;
- assert(chunk->get_content(sizeof(int), &tmp, sizeof(int)));
+ check_result(chunk->get_content(sizeof(int), &tmp, sizeof(int)));
printf("%d\n", tmp);
- assert(chunk->save("/tmp/test.bin"));
- assert(chunk->load("/tmp/test.bin"));
+ check_result(chunk->save("/tmp/test.bin"));
+ check_result(chunk->load("/tmp/test.bin"));
#ifdef LIBPINYIN_USE_MMAP
- assert(chunk->mmap("/tmp/test.bin"));
+ check_result(chunk->mmap("/tmp/test.bin"));
#endif
delete chunk;