From: Marius Gavrilescu Date: Sun, 18 Aug 2013 07:13:45 +0000 (+0300) Subject: Update tests X-Git-Tag: 0.002~5 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=d718c66c95acac9194d6b8e36176c0a80317dca2;p=app-musicexpo.git Update tests --- diff --git a/lib/App/MusicExpo.pm b/lib/App/MusicExpo.pm index 42526fa..1ad3768 100644 --- a/lib/App/MusicExpo.pm +++ b/lib/App/MusicExpo.pm @@ -31,6 +31,7 @@ GetOptions ( sub fix{ utf8::decode($_[0]); + $_[0] } sub flacinfo{ diff --git a/t/App-MusicExpo.t b/t/App-MusicExpo.t index 33f5b1e..6dfc455 100644 --- a/t/App-MusicExpo.t +++ b/t/App-MusicExpo.t @@ -8,8 +8,6 @@ use Storable qw/thaw/; BEGIN { use_ok('App::MusicExpo'); } -$App::MusicExpo::caching = 0; - my $flacinfo = thaw App::MusicExpo::flacinfo 'empty.flac'; my $mp3info = thaw App::MusicExpo::mp3info 'empty.mp3'; @@ -17,7 +15,7 @@ is $flacinfo->{format}, 'FLAC', 'flacinfo format'; is $flacinfo->{title}, 'Cellule', 'flacinfo title'; is $flacinfo->{artist}, 'Silence', 'flacinfo artist'; is $flacinfo->{year}, 2005, 'flacinfo year'; -is $flacinfo->{album}, 'L'autre endroit', 'flacinfo album'; +is $flacinfo->{album}, 'L\'autre endroit', 'flacinfo album'; is $flacinfo->{tracknumber}, '01', 'flacinfo tracknumber'; is $flacinfo->{tracktotal}, '09', 'flacinfo tracktotal'; is $flacinfo->{genre}, 'Electro', 'flacinfo genre'; @@ -27,7 +25,7 @@ is $mp3info->{format}, 'MP3', 'mp3info format'; is $mp3info->{title}, 'Cellule', 'mp3info title'; is $mp3info->{artist}, 'Silence', 'mp3info artist'; is $mp3info->{year}, 2005, 'mp3info year'; -is $mp3info->{album}, 'L'autre endroit', 'mp3info album'; +is $mp3info->{album}, 'L\'autre endroit', 'mp3info album'; is $mp3info->{tracknumber}, '01', 'mp3info tracknumber'; is $mp3info->{tracktotal}, '09', 'mp3info tracktotal'; is $mp3info->{genre}, 'Electro', 'mp3info genre';