fixed test

git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@654 59561ff5-6e30-0410-9f3c-9617f08c8826
This commit is contained in:
vlm 2005-02-18 09:41:13 +00:00
parent a8cdf7fe43
commit 457733bb49
1 changed files with 5 additions and 2 deletions

View File

@ -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;
}