Correct PPTP server firewall rules chain.
[tomato/davidwu.git] / release / src / router / nettle / testsuite / meta-armor-test.c
blob368ac2e3bdb7eaa16acaf467fedaa9773c8dbcb1
1 #include "testutils.h"
2 #include "nettle-meta.h"
4 const char* armors[] = {
5 "base16",
6 "base64"
7 };
9 void
10 test_main(void)
12 int i,j;
13 int count = sizeof(armors)/sizeof(*armors);
14 for (i = 0; i < count; i++) {
15 for (j = 0; NULL != nettle_armors[j]; j++) {
16 if (0 == strcmp(armors[i], nettle_armors[j]->name))
17 break;
19 ASSERT(NULL != nettle_armors[j]); /* make sure we found a matching armor */
21 j = 0;
22 while (NULL != nettle_armors[j])
23 j++;
24 ASSERT(j == count); /* we are not missing testing any armors */