8 #include "../lib/libcitadel.h"
14 char *teststrings[] = {
22 "FSDFSDFSDFSDF<><><>bggt",
23 "FSDFSDFSDF<><eoeo><>bggt",
29 char *strippedstrings[] = {
37 "FSDFSDFSDFSDF<><><>bggt",
38 "FSDFSDFSDF<><eoeo><>bggt",
44 long strippedlens[] = {
61 for (i=0; i<(sizeof(teststrings) / sizeof (char *)); ++i) {
62 printf("Testing stripallbut()\n");
63 strcpy(foo, teststrings[i]);
64 l = stripallbut(foo, '<', '>');
66 assert(!strcmp(foo, strippedstrings[i]));
67 assert(strlen(foo) == strippedlens[i]);