diff options
author | Peng Wu <alexepico@gmail.com> | 2011-08-22 19:12:53 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2011-08-22 19:12:53 +0800 |
commit | cda6da120aff1d3e228a9e99f0435ce862e05e12 (patch) | |
tree | aeeaaac6196ae8be09792178b21cad1cf5ae4982 /tests/storage | |
parent | 806ee677ed908de317f0bbf377279d2083dce731 (diff) | |
download | libpinyin-cda6da120aff1d3e228a9e99f0435ce862e05e12.tar.gz libpinyin-cda6da120aff1d3e228a9e99f0435ce862e05e12.tar.xz libpinyin-cda6da120aff1d3e228a9e99f0435ce862e05e12.zip |
fixes phrase index logger
Diffstat (limited to 'tests/storage')
-rw-r--r-- | tests/storage/test_phrase_index_logger.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/storage/test_phrase_index_logger.cpp b/tests/storage/test_phrase_index_logger.cpp index 965d2c6..ec5cc79 100644 --- a/tests/storage/test_phrase_index_logger.cpp +++ b/tests/storage/test_phrase_index_logger.cpp @@ -46,7 +46,7 @@ int main(int argc, char * argv[]){ chunk = new MemoryChunk; chunk->load("../../data/gb_char.bin"); new_chunk = new MemoryChunk; - phrase_index.diff(1, chunk, new_chunk); + assert(phrase_index.diff(1, chunk, new_chunk)); new_chunk->save("/tmp/gb_char.dbin"); delete new_chunk; @@ -55,7 +55,7 @@ int main(int argc, char * argv[]){ phrase_index.load(1, chunk); new_chunk = new MemoryChunk; new_chunk->load("/tmp/gb_char.dbin"); - phrase_index.merge(1, new_chunk); + assert(phrase_index.merge(1, new_chunk)); chunk = new MemoryChunk; phrase_index.store(1, chunk); chunk->save("/tmp/gb_char2.bin"); |