add more benc unit tests.

This commit is contained in:
Charles Kerr 2008-02-01 17:33:49 +00:00
parent 3334ea8401
commit b98a927a9a
1 changed files with 3 additions and 3 deletions

View File

@ -213,16 +213,16 @@ testParse( void )
return err; return err;
if(( err = testString( "d4:spaml1:a1:bee", TRUE ))) if(( err = testString( "d4:spaml1:a1:bee", TRUE )))
return err; return err;
#if 0 if(( err = testString( "d9:publisher3:bob17:publisher-webpage15:www.example.com18:publisher.location4:homee", TRUE )))
if(( err = testString( "d9:publisher3:bob18:publisher.location4:home17:publisher-webpage15:www.example.come", TRUE )))
return err; return err;
#endif
if(( err = testString( "d8:completei1e8:intervali1800e12:min intervali1800e5:peers0:e", TRUE ))) if(( err = testString( "d8:completei1e8:intervali1800e12:min intervali1800e5:peers0:e", TRUE )))
return err; return err;
if(( err = testString( "d1:ai0e1:be", FALSE ))) /* odd number of children */ if(( err = testString( "d1:ai0e1:be", FALSE ))) /* odd number of children */
return err; return err;
if(( err = testString( "", FALSE ))) if(( err = testString( "", FALSE )))
return err; return err;
if(( err = testString( " ", FALSE )))
return err;
/* nested containers /* nested containers
* parse an unsorted dict * parse an unsorted dict