Explorar o código

test/protover: add test for hyphen parsing bug

cypherpunks %!s(int64=5) %!d(string=hai) anos
pai
achega
4f3e6d5027
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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 */