summaryrefslogtreecommitdiff
path: root/test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test.c')
-rw-r--r--test.c103
1 files changed, 92 insertions, 11 deletions
diff --git a/test.c b/test.c
index 43d8ff4..3e9a86a 100644
--- a/test.c
+++ b/test.c
@@ -27,18 +27,99 @@ int main(void) {
}
/* mem */
{
- zap_i01 const in[0x4u] = {
- 0xFFFFu,
- 0xFFFu,
- 0xFFu,
- 0xFu,
+ zap_i8 const src[0x3Fu] = {
+0x02u,
+0x03u,
+0x05u,
+0x07u,
+0x0Bu,
+0x0Du,
+0x11u,
+0x13u,
+0x17u,
+0x1Du,
+0x1Fu,
+0x25u,
+0x29u,
+0x2Bu,
+0x2Fu,
+0x35u,
+0x3Bu,
+0x3Du,
+0x43u,
+0x47u,
+0x49u,
+0x4Fu,
+0x53u,
+0x59u,
+0x61u,
+0x65u,
+0x67u,
+0x6Bu,
+0x6Du,
+0x71u,
+0x7Fu,
+0x83u,
+0x89u,
+0x8Bu,
+0x95u,
+0x97u,
+0x9Du,
+0xA3u,
+0xA7u,
+0xADu,
+0xB3u,
+0xB5u,
+0xBFu,
+0xC1u,
+0xC5u,
+0xC7u,
+0xD3u,
+0xDFu,
+0xE3u,
+0xE5u,
+0xE9u,
+0xEFu,
+0xF1u,
+0xFBu,
};
- zap_i01 out[0x4u] = {0x0u};
- zap_cp(out,in,sizeof (in));
- test(out[0x0u],0xFFFFu,==)
- test(out[0x1u],0xFFFu, ==)
- test(out[0x2u],0xFFu, ==)
- test(out[0x3u],0xFu, ==)
+ 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],==)
}
{
zap_i04 val = 0x0u;