From 0853688a1f28012b3e9a0ac868a606de6ff3c998 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Wed, 26 Oct 2016 10:03:27 +0800 Subject: update test_memory_chunk.cpp --- tests/include/test_memory_chunk.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') 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; -- cgit