X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Frfc822%2Ftest%2Frun-no-body.c;fp=ccan%2Frfc822%2Ftest%2Frun-no-body.c;h=54ff4dbcf61a14e184fa57e5cf9a0eeb30bd4260;hp=0000000000000000000000000000000000000000;hb=de28abde1337e9255812ba720ffeef2c83a25dde;hpb=a3158e7994c9e05b3ef6683dea84ce0a6ae4609c diff --git a/ccan/rfc822/test/run-no-body.c b/ccan/rfc822/test/run-no-body.c new file mode 100644 index 00000000..54ff4dbc --- /dev/null +++ b/ccan/rfc822/test/run-no-body.c @@ -0,0 +1,86 @@ +#include +#include +#include +#include +#include +#include + +#define CCAN_RFC822_DEBUG + +#include + +#include + +#include "testdata.h" +#include "helper.h" + +const char no_body[] = + "Date: Tue, 22 Feb 2011 00:15:59 +1100\n" + "From: Mister From \n" + "To: Mizz To \n" + "Subject: Some subject\n" + "Message-ID: <20110221131559.GA28327@example>\n"; + +const char truncated[] = + "Date: Tue, 22 Feb 2011 00:15:59 +1100\n" + "From: Mister From \n" + "To: Mizz To