Commit b5ce57f4 authored by Lev Walkin's avatar Lev Walkin

fixed test

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