test/protover: add test for whitespace parsing bug

This commit is contained in:
cypherpunks 2018-08-17 17:25:24 +00:00
parent 4f3e6d5027
commit 18416b2cf0

View File

@ -579,6 +579,10 @@ test_protover_vote_roundtrip(void *args)
{ "Link=1-2-3", NULL }, { "Link=1-2-3", NULL },
{ "Faux=1-2-", NULL }, { "Faux=1-2-", NULL },
{ "Faux=1-2-3", NULL }, { "Faux=1-2-3", NULL },
{ "Link=\t1,3", NULL },
{ "Link=1\n,3", NULL },
{ "Faux=1,\r3", NULL },
{ "Faux=1,3\f", NULL },
/* Large integers */ /* Large integers */
{ "Link=4294967296", NULL }, { "Link=4294967296", NULL },
/* Large range */ /* Large range */