*/
#include "test.h"
-void test_cookies(void) {
+static void test_cookies(void) {
struct cookiedata cd[1];
- fprintf(stderr, "test_cookies\n");
-
/* These are the examples from RFC2109 */
insist(!parse_cookie("$Version=\"1\"; Customer=\"WILE_E_COYOTE\"; $Path=\"/acme\"", cd));
insist(!strcmp(cd->version, "1"));
insist(cd->cookies[0].domain == 0);
}
+TEST(cookies);
+
/*
Local Variables:
c-basic-offset:2