merged test from RC_0_16

This commit is contained in:
Arvid Norberg 2013-11-07 17:12:11 +00:00
parent ea0aa72cce
commit a00f396224
1 changed files with 7 additions and 0 deletions

View File

@ -201,6 +201,13 @@ int test_main()
int ret = lazy_bdecode((char*)buf, (char*)buf + sizeof(buf), e, ec);
TEST_CHECK(ret == -1);
}
{
unsigned char buf[] = { 0x44 , 0x91 , 0x3a };
entry ent = bdecode(buf, buf + sizeof(buf));
TEST_CHECK(ent == entry());
}
return 0;
}