From 61b4303375c07de779eab78dc645ce175f8f22b5 Mon Sep 17 00:00:00 2001 From: alex Date: Thu, 28 Oct 2021 17:02:58 -0700 Subject: [PATCH] ... --- test/unit/bencode.tests.c | 1 + 1 file changed, 1 insertion(+) 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() { -- 2.39.5