summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/include/test_memory_chunk.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/include/test_memory_chunk.cpp b/tests/include/test_memory_chunk.cpp
index 9779c8f..5042882 100644
--- a/tests/include/test_memory_chunk.cpp
+++ b/tests/include/test_memory_chunk.cpp
@@ -58,6 +58,12 @@ int main(int argc, char * argv[]){
assert(chunk->get_content(sizeof(int), &tmp, sizeof(int)));
printf("%d\n", tmp);
+ assert(chunk->save("/tmp/test.bin"));
+ assert(chunk->load("/tmp/test.bin"));
+#ifdef LIBPINYIN_USE_MMAP
+ assert(chunk->mmap("/tmp/test.bin"));
+#endif
+
delete chunk;
return 0;