test/protover: add test for hyphen parsing bug

This commit is contained in:
cypherpunks 2018-08-17 17:14:25 +00:00
parent 87aacbfbba
commit 4f3e6d5027

View File

@ -575,6 +575,10 @@ test_protover_vote_roundtrip(void *args)
{ "Faux=-1", NULL },
{ "Faux=-1-3", NULL },
{ "Faux=1--1", NULL },
{ "Link=1-2-", NULL },
{ "Link=1-2-3", NULL },
{ "Faux=1-2-", NULL },
{ "Faux=1-2-3", NULL },
/* Large integers */
{ "Link=4294967296", NULL },
/* Large range */