blob: 406c8d0197edcae1f891aba43bc5df06483d043c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#include "testutils.h"
#include "nettle-meta.h"
const char* armors[] = {
"base16",
"base64",
"base64url",
};
void
test_main(void)
{
int i,j;
int count = sizeof(armors)/sizeof(*armors);
for (i = 0; i < count; i++) {
for (j = 0; NULL != nettle_armors[j]; j++) {
if (0 == strcmp(armors[i], nettle_armors[j]->name))
break;
}
ASSERT(NULL != nettle_armors[j]); /* make sure we found a matching armor */
}
j = 0;
while (NULL != nettle_armors[j])
j++;
ASSERT(j == count); /* we are not missing testing any armors */
}
|