File: 06-discid.t

package info (click to toggle)
libnet-freedb-perl 0.10-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 312 kB
  • sloc: ansic: 896; perl: 336; makefile: 5
file content (14 lines) | stat: -rw-r--r-- 395 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use Test::Most;

require_ok('Net::FreeDB');

my $freedb = new Net::FreeDB();
ok($freedb, 'Unable to create instance');

if ($ENV{HAVE_INTERNET}) {
    my $disc_id;
    ok($disc_id = $freedb->discid(12, 150, 8292, 32047, 50992, 71957, 86200, 100302, 105897, 120897, 139437, 158775, 171760, 2566));
    ok($disc_id eq '9a0a040c', "DiscID: $disc_id is NOT the expected 9a0a040c");
}

done_testing;