summaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test.c')
-rw-r--r--test.c93
1 files changed, 56 insertions, 37 deletions
diff --git a/test.c b/test.c
index 7c04e9d..d862393 100644
--- a/test.c
+++ b/test.c
@@ -68,7 +68,7 @@ int main(void) {
}
// mem
{
- zap_i8 const src[0x3Fu] = {
+ zap_i8 const src[0x36u] = {
0x02u,0x03u,0x05u,0x07u,0x0Bu,0x0Du,0x11u,0x13u,
0x17u,0x1Du,0x1Fu,0x25u,0x29u,0x2Bu,0x2Fu,0x35u,
0x3Bu,0x3Du,0x43u,0x47u,0x49u,0x4Fu,0x53u,0x59u,
@@ -78,42 +78,61 @@ int main(void) {
0xE3u,0xE5u,0xE9u,0xEFu,0xF1u,0xFBu,
};
zap_i8 dest[sizeof (src)];
- zap_cp(dest,src,sizeof (src));
- test(dest[0x00u],src[0x00u],==)
- test(dest[0x01u],src[0x01u],==)
- test(dest[0x02u],src[0x02u],==)
- test(dest[0x03u],src[0x03u],==)
- test(dest[0x04u],src[0x04u],==)
- test(dest[0x05u],src[0x05u],==)
- test(dest[0x06u],src[0x06u],==)
- test(dest[0x07u],src[0x07u],==)
- test(dest[0x08u],src[0x08u],==)
- test(dest[0x09u],src[0x09u],==)
- test(dest[0x0Au],src[0x0Au],==)
- test(dest[0x0Bu],src[0x0Bu],==)
- test(dest[0x0Cu],src[0x0Cu],==)
- test(dest[0x0Du],src[0x0Du],==)
- test(dest[0x0Eu],src[0x0Eu],==)
- test(dest[0x0Fu],src[0x0Fu],==)
- test(dest[0x10u],src[0x10u],==)
- test(dest[0x11u],src[0x11u],==)
- test(dest[0x12u],src[0x12u],==)
- test(dest[0x13u],src[0x13u],==)
- test(dest[0x14u],src[0x14u],==)
- test(dest[0x15u],src[0x15u],==)
- test(dest[0x16u],src[0x16u],==)
- test(dest[0x17u],src[0x17u],==)
- test(dest[0x18u],src[0x18u],==)
- test(dest[0x19u],src[0x19u],==)
- test(dest[0x1Au],src[0x1Au],==)
- test(dest[0x1Bu],src[0x1Bu],==)
- test(dest[0x1Cu],src[0x1Cu],==)
- test(dest[0x1Du],src[0x1Du],==)
- test(dest[0x1Eu],src[0x1Eu],==)
- test(dest[0x1Fu],src[0x1Fu],==)
- test(dest[0x20u],src[0x20u],==)
- test(dest[0x21u],src[0x21u],==)
- test(dest[0x22u],src[0x22u],==)
+ test(zap_cp(dest,src,sizeof (src)),dest + sizeof(src),==)
+ test(dest[0x00u],0x02u,==)
+ test(dest[0x01u],0x03u,==)
+ test(dest[0x02u],0x05u,==)
+ test(dest[0x03u],0x07u,==)
+ test(dest[0x04u],0x0Bu,==)
+ test(dest[0x05u],0x0Du,==)
+ test(dest[0x06u],0x11u,==)
+ test(dest[0x07u],0x13u,==)
+ test(dest[0x08u],0x17u,==)
+ test(dest[0x09u],0x1Du,==)
+ test(dest[0x0Au],0x1Fu,==)
+ test(dest[0x0Bu],0x25u,==)
+ test(dest[0x0Cu],0x29u,==)
+ test(dest[0x0Du],0x2Bu,==)
+ test(dest[0x0Eu],0x2Fu,==)
+ test(dest[0x0Fu],0x35u,==)
+ test(dest[0x10u],0x3Bu,==)
+ test(dest[0x11u],0x3Du,==)
+ test(dest[0x12u],0x43u,==)
+ test(dest[0x13u],0x47u,==)
+ test(dest[0x14u],0x49u,==)
+ test(dest[0x15u],0x4Fu,==)
+ test(dest[0x16u],0x53u,==)
+ test(dest[0x17u],0x59u,==)
+ test(dest[0x18u],0x61u,==)
+ test(dest[0x19u],0x65u,==)
+ test(dest[0x1Au],0x67u,==)
+ test(dest[0x1Bu],0x6Bu,==)
+ test(dest[0x1Cu],0x6Du,==)
+ test(dest[0x1Du],0x71u,==)
+ test(dest[0x1Eu],0x7Fu,==)
+ test(dest[0x1Fu],0x83u,==)
+ test(dest[0x20u],0x89u,==)
+ test(dest[0x21u],0x8Bu,==)
+ test(dest[0x22u],0x95u,==)
+ test(dest[0x23u],0x97u,==)
+ test(dest[0x24u],0x9Du,==)
+ test(dest[0x25u],0xA3u,==)
+ test(dest[0x26u],0xA7u,==)
+ test(dest[0x27u],0xADu,==)
+ test(dest[0x28u],0xB3u,==)
+ test(dest[0x29u],0xB5u,==)
+ test(dest[0x2Au],0xBFu,==)
+ test(dest[0x2Bu],0xC1u,==)
+ test(dest[0x2Cu],0xC5u,==)
+ test(dest[0x2Du],0xC7u,==)
+ test(dest[0x2Eu],0xD3u,==)
+ test(dest[0x2Fu],0xDFu,==)
+ test(dest[0x30u],0xE3u,==)
+ test(dest[0x31u],0xE5u,==)
+ test(dest[0x32u],0xE9u,==)
+ test(dest[0x33u],0xEFu,==)
+ test(dest[0x34u],0xF1u,==)
+ test(dest[0x35u],0xFBu,==)
}
{
zap_i04 val = 0x0u;