Ignore:
Timestamp:
May 13, 2008, 5:31:09 PM (14 years ago)
Author:
charles
Message:

more work on rpc. bug fixes, regression tests, and spec tweaks.

File:
1 edited

Legend:

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

    r5828 r5829  
    276276{
    277277    char * serialized = tr_rison2json( rison_str, -1 );
    278 #if 0
    279278fprintf( stderr, " expected: [%s]\n", expected );
    280279fprintf( stderr, "      got: [%s]\n", serialized );
    281 #endif
    282280    check( !strcmp( serialized, expected ) );
    283281    tr_free( serialized );
     
    294292    rison = "(a:0,b:foo,c:'23skidoo')";
    295293    expected = "{ \"a\": 0, \"b\": \"foo\", \"c\": \"23skidoo\" }";
     294    if(( val = testRISONSnippet( rison, expected )))
     295        return val;
     296
     297    rison = "(method:torrent-info)";
     298    expected = "{ \"method\": \"torrent-info\" }";
    296299    if(( val = testRISONSnippet( rison, expected )))
    297300        return val;
Note: See TracChangeset for help on using the changeset viewer.