X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Frfc822%2Ftest%2Ftestdata.h;h=4ef07095474cef88fa940a466f2798e4f7ec79cd;hp=ceb3bcd892078e429509d1911988ad5ebbf45ac0;hb=79831fda0048ef7c6aef6db05dcb4338fa0e4314;hpb=07962f1c3f6f2916f412b95b28513314294aba2e diff --git a/ccan/rfc822/test/testdata.h b/ccan/rfc822/test/testdata.h index ceb3bcd8..4ef07095 100644 --- a/ccan/rfc822/test/testdata.h +++ b/ccan/rfc822/test/testdata.h @@ -53,11 +53,15 @@ AEXAMPLE(test_msg_nlnl_crlf); const char test_msg_nlnl_mixed_body[] = "Message containing both \n\n and \r\n\r\n inside body\n\r\n"; AEXAMPLE(test_msg_nlnl_mixed); +#define test_msg_space_body_hdrs test_msg_1_hdrs +const char test_msg_space_body_body[] = " Message with LWS at start of body\n"; +AEXAMPLE(test_msg_space_body); #define for_each_aexample(_e) \ foreach_ptr((_e), &test_msg_1, &test_msg_empty_body, \ &test_msg_nlnl_lf, &test_msg_nlnl_crlf, \ - &test_msg_nlnl_mixed) + &test_msg_nlnl_mixed, \ + &test_msg_space_body) #define for_each_aexample_buf(_e, _buf, _len) \ for_each_aexample((_e)) \