Ignore:
Timestamp:
Jun 8, 2014, 8:01:10 PM (8 years ago)
Author:
jordan
Message:

add tr_makeMetaInfo() unit test for creating a single-file torrent

File:
1 edited

Legend:

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

    r14288 r14289  
    9797{
    9898  char * path = tr_buildPath (top, "hello-world.txt", NULL);
    99   libtest_create_file_with_contents (path, "hello, world!\n");
     99  libtest_create_file_with_string_contents (path, "hello, world!\n");
    100100  tr_free (path);
    101101}
     
    242242
    243243  path = tr_buildPath (top, "Felidae", "Felinae", "Acinonyx", "Cheetah", "Chester", NULL);
    244   libtest_create_file_with_contents (path, "It ain't easy bein' cheesy.\n");
     244  libtest_create_file_with_string_contents (path, "It ain't easy bein' cheesy.\n");
    245245  tr_free (path);
    246246
    247247  path = tr_buildPath (top, "Felidae", "Pantherinae", "Panthera", "Tiger", "Tony", NULL);
    248   libtest_create_file_with_contents (path, "They’re Grrrrreat!\n");
     248  libtest_create_file_with_string_contents (path, "They’re Grrrrreat!\n");
    249249  tr_free (path);
    250250
    251251  path = tr_buildPath (top, "Felidae", "Felinae", "Felis", "catus", "Kyphi", NULL);
    252   libtest_create_file_with_contents (path, "Inquisitive\n");
     252  libtest_create_file_with_string_contents (path, "Inquisitive\n");
    253253  tr_free (path);
    254254
    255255  path = tr_buildPath (top, "Felidae", "Felinae", "Felis", "catus", "Saffron", NULL);
    256   libtest_create_file_with_contents (path, "Tough\n");
     256  libtest_create_file_with_string_contents (path, "Tough\n");
    257257  tr_free (path);
    258258
Note: See TracChangeset for help on using the changeset viewer.