Initial commit
[www-search-torrentz.git] / t / WWW-Search-Torrentz-Result.t
CommitLineData
e605ae0f
MG
1#!/usr/bin/perl -w
2use strict;
3use warnings;
4
5use Test::More tests => 9;
6BEGIN { use_ok('WWW::Search::Torrentz::Result') };
7
8my $result = WWW::Search::Torrentz::Result->new(
9 title => 'Title',
10 verified => 4,
11 age => 'age',
12 size => 'size',
13 seeders => 50,
14 leechers => 50,
15 infohash => '514131e668a8134bca9668ef2e19e690924adf86',
16);
17
18is $result->title, 'Title', 'title';
19is $result->verified, 4, 'verified';
20is $result->age, 'age', 'age';
21is $result->size, 'size', 'size';
22is $result->seeders, 50, 'seeders';
23is $result->leechers, 50, 'leechers';
24is $result->infohash, '514131e668a8134bca9668ef2e19e690924adf86', 'infohash';
25is $result->magnet, 'magnet:?xt=urn:btih:514131e668a8134bca9668ef2e19e690924adf86&dn=Title', 'magnet';
This page took 0.01002 seconds and 4 git commands to generate.