Initial commit
[www-search-coveralia.git] / t / artists.t
CommitLineData
a97b490d
MG
1#!/usr/bin/perl
2use v5.14;
3use warnings;
4
5use List::Util qw/first/;
6use WWW::Search::Test;
7
8use Test::More tests => 9;
9
10tm_new_engine('Coveralia::Artists');
11tm_run_test_no_approx(normal => $WWW::Search::Test::bogus_query, 0, 0);
12tm_run_test_no_approx(normal => 'Metallica', 1, 10);
13my $result = first { $_->title eq 'Metallica' } $WWW::Search::Test::oSearch->results;
14my @albums = $result->albums;
15
16$result = first { $_->title eq 'And Justice For All' } @albums;
17is $result->year, 1988, 'And Justice For All was released in 1988';
18my %acovers = $result->covers;
19ok $acovers{frontal}, 'And Justice For All has a front cover';
This page took 0.009989 seconds and 4 git commands to generate.