blob: 368ac2e3bdb7eaa16acaf467fedaa9773c8dbcb1 (
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
|
#include "testutils.h"
#include "nettle-meta.h"
const char* armors[] = {
"base16",
"base64"
};
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 */
}
|