diff options
author | Peng Wu <alexepico@gmail.com> | 2022-06-06 11:29:16 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2022-06-06 11:29:16 +0800 |
commit | 5f3df104b5ac0c3497a48cfc476eb3eedf1e543b (patch) | |
tree | f05013c0258b95561d8cb5f5f108ca56ebb74c03 /tests/storage/test_phrase_index.cpp | |
parent | a307b3e60b0b93310eb7efd165659d84d8752a56 (diff) | |
download | libpinyin-5f3df104b5ac0c3497a48cfc476eb3eedf1e543b.tar.gz libpinyin-5f3df104b5ac0c3497a48cfc476eb3eedf1e543b.tar.xz libpinyin-5f3df104b5ac0c3497a48cfc476eb3eedf1e543b.zip |
Use check_result macro in tests directory
Diffstat (limited to 'tests/storage/test_phrase_index.cpp')
-rw-r--r-- | tests/storage/test_phrase_index.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/storage/test_phrase_index.cpp b/tests/storage/test_phrase_index.cpp index fa0721a..0fa6a29 100644 --- a/tests/storage/test_phrase_index.cpp +++ b/tests/storage/test_phrase_index.cpp @@ -38,11 +38,11 @@ int main(int argc, char * argv[]){ assert(string1 == string2); FacadePhraseIndex phrase_index_test; - assert(!phrase_index_test.add_phrase_item(1, &phrase_item)); + check_result(!phrase_index_test.add_phrase_item(1, &phrase_item)); MemoryChunk* chunk = new MemoryChunk; - assert(phrase_index_test.store(0, chunk)); - assert(phrase_index_test.load(0, chunk)); + check_result(phrase_index_test.store(0, chunk)); + check_result(phrase_index_test.load(0, chunk)); PhraseItem item2; guint32 time = record_time(); |