Ignore:
Timestamp:
Apr 13, 2008, 10:31:07 PM (14 years ago)
Author:
charles
Message:

#394: resume files should use original name instead of hash name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/bencode-test.c

    r5438 r5608  
    170170    int err;
    171171    int len;
     172    int64_t i;
    172173    char * saved;
    173174
     
    175176    err = tr_bencParse( buf, buf + sizeof( buf ), &val, &end );
    176177    check( !err );
    177     check( tr_bencGetInt( &val ) == 64 );
     178    check( tr_bencGetInt( &val, &i ) );
     179    check( i == 64 );
    178180    check( end == buf + 4 );
    179181    tr_bencFree( &val );
     
    184186    check( end == buf + strlen( (char*)buf ) );
    185187    check( val.val.l.count == 3 );
    186     check( tr_bencGetInt( &val.val.l.vals[0] ) == 64 );
    187     check( tr_bencGetInt( &val.val.l.vals[1] ) == 32 );
    188     check( tr_bencGetInt( &val.val.l.vals[2] ) == 16 );
     188    check( tr_bencGetInt( &val.val.l.vals[0], &i ) );
     189    check( i == 64 );
     190    check( tr_bencGetInt( &val.val.l.vals[1], &i ) );
     191    check( i == 32 );
     192    check( tr_bencGetInt( &val.val.l.vals[2], &i ) );
     193    check( i == 16 );
    189194    saved = tr_bencSave( &val, &len );
    190195    check( !strcmp( saved, (char*)buf ) );
Note: See TracChangeset for help on using the changeset viewer.