mirror of
https://github.com/cryb-to/cryb-to.git
synced 2024-11-25 15:15:42 +00:00
Add marginally useful test cases based on t_zero.
This commit is contained in:
parent
d670e3e94d
commit
5e1e20c624
2 changed files with 19 additions and 2 deletions
|
@ -101,6 +101,13 @@ static struct t_case t_cases[] = {
|
||||||
.len = 8,
|
.len = 8,
|
||||||
.sum = 0x00800025,
|
.sum = 0x00800025,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
.desc = "zeroes",
|
||||||
|
.data = (const char *)t_zero,
|
||||||
|
.len = sizeof t_zero,
|
||||||
|
.sum = (sizeof t_zero << 16) | 1,
|
||||||
|
},
|
||||||
|
/* XXX need non-zero cases which exercise modulo */
|
||||||
};
|
};
|
||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
|
|
|
@ -54,8 +54,8 @@ static struct t_case t_cases[] = {
|
||||||
.data = "\x01\x02\x03\x04\x05\x06\x07\x08",
|
.data = "\x01\x02\x03\x04\x05\x06\x07\x08",
|
||||||
.len = 0,
|
.len = 0,
|
||||||
.sum16 = 0x00,
|
.sum16 = 0x00,
|
||||||
.sum32 = 0x00,
|
.sum32 = 0x0000,
|
||||||
.sum64 = 0x00,
|
.sum64 = 0x00000000,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.desc = "len == 1",
|
.desc = "len == 1",
|
||||||
|
@ -121,6 +121,16 @@ static struct t_case t_cases[] = {
|
||||||
.sum32 = 0x1e281014,
|
.sum32 = 0x1e281014,
|
||||||
.sum64 = 0x070a0d1006080a0c,
|
.sum64 = 0x070a0d1006080a0c,
|
||||||
},
|
},
|
||||||
|
/* not really useful... */
|
||||||
|
{
|
||||||
|
.desc = "zeroes",
|
||||||
|
.data = (const char *)t_zero,
|
||||||
|
.len = sizeof t_zero,
|
||||||
|
.sum16 = 0x00,
|
||||||
|
.sum32 = 0x0000,
|
||||||
|
.sum64 = 0x00000000,
|
||||||
|
},
|
||||||
|
/* XXX need non-zero cases which exercise modulo */
|
||||||
};
|
};
|
||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
|
|
Loading…
Reference in a new issue