Skip to content
Snippets Groups Projects
Commit b5ce57f4 authored by Lev Walkin's avatar Lev Walkin
Browse files

fixed test

parent ace5e919
No related branches found
No related tags found
No related merge requests found
...@@ -125,10 +125,13 @@ process_data(enum expectation expectation, char *fbuf, int size) { ...@@ -125,10 +125,13 @@ process_data(enum expectation expectation, char *fbuf, int size) {
assert(buf_offset > 0 && buf_offset < size); assert(buf_offset > 0 && buf_offset < size);
break; break;
case EXP_BROKEN: case EXP_BROKEN:
assert(buf_offset == size); assert(buf_offset != size
assert(memcmp(buf, fbuf, buf_offset) == 0); || memcmp(buf, fbuf, buf_offset));
break; break;
case EXP_OK: case EXP_OK:
printf("%d %d\n", buf_offset, size);
assert(buf_offset == size);
assert(memcmp(buf, fbuf, buf_offset) == 0);
break; break;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment