Browse Source

test/protover: add test for whitespace parsing bug

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

+ 4 - 0
src/test/test_protover.c

@@ -579,6 +579,10 @@ test_protover_vote_roundtrip(void *args)
     { "Link=1-2-3", NULL },
     { "Faux=1-2-", 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 */
     { "Link=4294967296", NULL },
     /* Large range */