From: alex Date: Fri, 29 Oct 2021 00:02:58 +0000 (-0700) Subject: ... X-Git-Url: http://git.infiniteadaptability.org/?a=commitdiff_plain;h=61b4303375c07de779eab78dc645ce175f8f22b5;p=seeder ... --- diff --git a/test/unit/bencode.tests.c b/test/unit/bencode.tests.c index 08e1cad..48e8efb 100644 --- a/test/unit/bencode.tests.c +++ b/test/unit/bencode.tests.c @@ -58,6 +58,7 @@ static void bdecode_string_basic_test() { assert(bdecode_string(str1,sizeof(str1)-1,buf,3)==-1); assert(bdecode_string(str1,sizeof(str1)-1,buf,4)==4); assert(bdecode_string(str1,sizeof(str1)-1,buf,1024)==4); + assert(memcmp(buf,"spam",4)==0); } static void bdecode_type_basic_test() {