]> iEval git - webservice-strike.git/blobdiff - t/WebService-Strike-Torrent.t
Bump version and update Changes
[webservice-strike.git] / t / WebService-Strike-Torrent.t
index 9787119a3bfb1e66d803c3d73c875613b0c70973..16e5fe9f199c453878388f348ed57f8b7870ec4f 100644 (file)
@@ -7,16 +7,16 @@ BEGIN { use_ok('WebService::Strike::Torrent') }
 
 my %data = (
        leeches => 13,
-       size => '587 MB',
-       torrent_hash => 'b425907e5755031bda4a8d1b6dccaca97da14c04',
+       size => 615514112,
+       torrent_hash => 'B425907E5755031BDA4A8D1B6DCCACA97DA14C04',
        file_count => 1,
        sub_category => '',
        torrent_category => 'Applications',
-       file_info => [{
+       file_info => {
                file_names => [ 'archlinux-2015.01.01-dual.iso' ],
                file_lengths => [ 615514112 ],
-       }],
-       upload_date => 'Jan  6, 2015',
+       },
+       upload_date => 1420502400,
        seeds => 645,
        uploader_username => 'The_Doctor-',
        torrent_title => 'Arch Linux 2015.01.01 (x86/x64)'
@@ -31,8 +31,8 @@ is $t->sub_category, '', 'sub_category';
 is $t->seeds, 645, 'seeds';
 is $t->leeches, 13, 'leeches';
 is $t->count, 1, 'count';
-is $t->size, '587 MB', 'size';
-is $t->date, 1420495200,'date';
+is $t->size, 615514112, 'size';
+is $t->date, 1420502400,'date';
 is $t->uploader, 'The_Doctor-', 'uploader';
 is $t->names->[0], 'archlinux-2015.01.01-dual.iso', 'names';
 is $t->lengths->[0], 615514112, 'lengths';
This page took 0.022176 seconds and 4 git commands to generate.