merged test from RC_0_16
This commit is contained in:
parent
ea0aa72cce
commit
a00f396224
|
@ -201,6 +201,13 @@ int test_main()
|
||||||
int ret = lazy_bdecode((char*)buf, (char*)buf + sizeof(buf), e, ec);
|
int ret = lazy_bdecode((char*)buf, (char*)buf + sizeof(buf), e, ec);
|
||||||
TEST_CHECK(ret == -1);
|
TEST_CHECK(ret == -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
unsigned char buf[] = { 0x44 , 0x91 , 0x3a };
|
||||||
|
entry ent = bdecode(buf, buf + sizeof(buf));
|
||||||
|
TEST_CHECK(ent == entry());
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue