summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/include/test_memory_chunk.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/include/test_memory_chunk.cpp b/tests/include/test_memory_chunk.cpp
index dcee8a1..9779c8f 100644
--- a/tests/include/test_memory_chunk.cpp
+++ b/tests/include/test_memory_chunk.cpp
@@ -58,30 +58,6 @@ int main(int argc, char * argv[]){
assert(chunk->get_content(sizeof(int), &tmp, sizeof(int)));
printf("%d\n", tmp);
- const char * filename = "/tmp/version";
- const char * version = "0.2.0";
-
- /* testing version check. */
- bool retval = chunk->load(filename);
- if ( !retval ){
- fprintf(stderr, "can't find chunk\n");
- }else if ( memcmp(version, chunk->begin(), strlen(version) + 1) == 0){
- printf("match\n");
- }
-
- delete chunk;
- chunk = new MemoryChunk;
-
- chunk->set_content(0, version, strlen(version) + 1);
- chunk->save(filename);
-
- retval = chunk->load(filename);
- if ( !retval ){
- fprintf(stderr, "can't find chunk\n");
- } else if ( memcmp(version, chunk->begin(), strlen(version) + 1) == 0){
- printf("match\n");
- }
-
delete chunk;
return 0;