summaryrefslogtreecommitdiffstats
path: root/tests/storage/test_phrase_index_logger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/storage/test_phrase_index_logger.cpp')
-rw-r--r--tests/storage/test_phrase_index_logger.cpp4
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");