home
/
projects
/
seeder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
794fc57
)
...
author
alex
<
[email protected]
>
Fri, 29 Oct 2021 00:02:58 +0000
(17:02 -0700)
committer
alex
<
[email protected]
>
Fri, 29 Oct 2021 00:02:58 +0000
(17:02 -0700)
test/unit/bencode.tests.c
patch
|
blob
|
history
diff --git
a/test/unit/bencode.tests.c
b/test/unit/bencode.tests.c
index 08e1cad9532684eeb3c7ffc807452c61be067857..48e8efb861393fcc74bc01e27d2b455d68a86058 100644
(file)
--- 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() {