Browse Source

test/protover: add test for hyphen parsing bug

cypherpunks 5 years ago
parent
commit
4f3e6d5027
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/test/test_protover.c

+ 4 - 0
src/test/test_protover.c

@@ -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 */