Skip to content

Commit

Permalink
fix t/30-collection.t
Browse files Browse the repository at this point in the history
  • Loading branch information
jquelin committed Jun 11, 2014
1 parent 466c7a0 commit 65261db
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions t/30-collection.t
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use strict;
use warnings;

use Audio::MPD;
use List::AllUtils qw{ any };
use Test::More;

# are we able to test module?
Expand Down Expand Up @@ -78,15 +79,15 @@ is( $list[1], 'our album', 'all_albums return strings' );
# note: mpd 0.14 also returns empty artists
@list = $coll->all_artists;
is( scalar @list, 2, 'all_artists return the artists' );
is( $list[0], 'dir1-artist', 'all_artists return strings' );
ok( any { $_ eq 'dir1-artist' } @list, 'all_artists return strings' );


#
# testing all_titles.
# note: mpd 0.14 also returns empty titles
@list = $coll->all_titles;
is( scalar @list, 4, 'all_titles return the titles' );
like( $list[0], qr/-title$/, 'all_titles return strings' );
ok( any { /-title$/ } @list, 'all_titles return strings' );


#
Expand Down

0 comments on commit 65261db

Please sign in to comment.