Add test for AAC
authorMarius Gavrilescu <marius@ieval.ro>
Sat, 25 Oct 2014 12:00:09 +0000 (15:00 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Sat, 25 Oct 2014 12:01:20 +0000 (15:01 +0300)
MANIFEST
empty.aac [new file with mode: 0644]
t/App-MusicExpo.t

index 6b43953df6e769627f1cd0ab47e248636596ea5b..f2ca44a2fd9dcaf0a508f0e11a2b5fd0949afc65 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
@@ -7,6 +7,8 @@ t/musicexpo-cache.t
 t/musicexpo.t
 lib/App/MusicExpo.pm
 musicexpo
+empty.aac
 empty.mp3
 empty.flac
 empty.ogg
+
diff --git a/empty.aac b/empty.aac
new file mode 100644 (file)
index 0000000..e8695dc
Binary files /dev/null and b/empty.aac differ
index ca2c37d5a24c2f3b162b360de7ca60bbb63986b0..6102d11683d925aeda88dc2a0270ac8ca1de34c2 100644 (file)
@@ -2,7 +2,7 @@
 use v5.14;
 use warnings;
 
-use Test::More tests => 28;
+use Test::More tests => 37;
 
 use Storable qw/thaw/;
 
@@ -11,6 +11,7 @@ BEGIN { use_ok('App::MusicExpo'); }
 my $flacinfo = thaw App::MusicExpo::flacinfo 'empty.flac';
 my $mp3info = thaw App::MusicExpo::mp3info 'empty.mp3';
 my $vorbisinfo = thaw App::MusicExpo::vorbisinfo 'empty.ogg';
+my $mp4info = thaw App::MusicExpo::mp4info 'empty.aac';
 
 is $flacinfo->{format}, 'FLAC', 'flacinfo format';
 is $flacinfo->{title}, 'Cellule', 'flacinfo title';
@@ -41,3 +42,13 @@ is $vorbisinfo->{tracknumber}, '01', 'vorbisinfo tracknumber';
 is $vorbisinfo->{tracktotal}, '09', 'vorbisinfo tracktotal';
 is $vorbisinfo->{genre}, 'Electro', 'vorbisinfo genre';
 is $vorbisinfo->{file}, 'empty.ogg', 'vorbisinfo path';
+
+is $mp4info->{format}, 'AAC', 'mp4info format';
+is $mp4info->{title}, 'Cellule', 'mp4info title';
+is $mp4info->{artist}, 'Silence', 'mp4info artist';
+is $mp4info->{year}, 2005, 'mp4info year';
+is $mp4info->{album}, 'L\'autre endroit', 'mp4info album';
+is $mp4info->{tracknumber}, '1', 'mp4info tracknumber';
+is $mp4info->{tracktotal}, '9', 'mp4info tracktotal';
+is $mp4info->{genre}, 'Electro', 'mp4info genre';
+is $mp4info->{file}, 'empty.aac', 'mp4info path';
This page took 0.011692 seconds and 4 git commands to generate.