소스 검색

test/protover: add test for hyphen parsing bug

cypherpunks 5 년 전
부모
커밋
4f3e6d5027
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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 */