more test cases for integers

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6469 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-07-15 17:16:37 +00:00
parent f95c0bd7d1
commit c57514b379

View File

@@ -155,10 +155,15 @@ test_integer (void)
{NULL, 4, "\x02\x02\x01\x00"},
{NULL, 3, "\x02\x01\x80"},
{NULL, 4, "\x02\x02\xff\x7f"},
{NULL, 3, "\x02\x01\xff"}
{NULL, 3, "\x02\x01\xff"},
{NULL, 4, "\x02\x02\xff\x01"},
{NULL, 4, "\x02\x02\x00\xff"},
{NULL, 6, "\x02\x04\x80\x00\x00\x00"},
{NULL, 6, "\x02\x04\x7f\xff\xff\xff"}
};
int values[] = {0, 127, 128, 256, -128, -129, -1};
int values[] = {0, 127, 128, 256, -128, -129, -1, -255, 255,
0x80000000, 0x7fffffff};
int i;
int ntests = sizeof(tests) / sizeof(*tests);