Mercurial > vec
diff test/test.c @ 17:41dd962abdd1
*: allow compiling vec in a C++ translation unit
this is stupid, but whatever
author | Paper <paper@tflc.us> |
---|---|
date | Wed, 20 Nov 2024 12:02:15 -0500 |
parents | e05c257c6a23 |
children | cf04071d2148 |
line wrap: on
line diff
--- a/test/test.c Wed Nov 20 04:16:56 2024 -0500 +++ b/test/test.c Wed Nov 20 12:02:15 2024 -0500 @@ -1,6 +1,7 @@ #include "vec/vec.h" #include <stdio.h> +#include <string.h> #include <inttypes.h> #define ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0])) @@ -78,6 +79,11 @@ VTEST(, , bits, size) VTEST(u, U, bits, size) \ VPRINT(, , d, bits, size) VPRINT(u, U, u, bits, size) +DEF_VEC_TEST_FUNCS(8, 2) + +DEF_VEC_TEST_FUNCS(8, 4) +DEF_VEC_TEST_FUNCS(16, 2) + DEF_VEC_TEST_FUNCS(8, 8) DEF_VEC_TEST_FUNCS(16, 4) DEF_VEC_TEST_FUNCS(32, 2)