...
authoralex <[email protected]>
Fri, 29 Oct 2021 00:02:58 +0000 (17:02 -0700)
committeralex <[email protected]>
Fri, 29 Oct 2021 00:02:58 +0000 (17:02 -0700)
test/unit/bencode.tests.c

index 08e1cad9532684eeb3c7ffc807452c61be067857..48e8efb861393fcc74bc01e27d2b455d68a86058 100644 (file)
@@ -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() {