use v5.14;
use warnings;
-use Test::More tests => 19;
+use Test::More tests => 28;
use Storable qw/thaw/;
my $flacinfo = thaw App::MusicExpo::flacinfo 'empty.flac';
my $mp3info = thaw App::MusicExpo::mp3info 'empty.mp3';
+my $vorbisinfo = thaw App::MusicExpo::vorbisinfo 'empty.ogg';
is $flacinfo->{format}, 'FLAC', 'flacinfo format';
is $flacinfo->{title}, 'Cellule', 'flacinfo title';
is $flacinfo->{tracknumber}, '01', 'flacinfo tracknumber';
is $flacinfo->{tracktotal}, '09', 'flacinfo tracktotal';
is $flacinfo->{genre}, 'Electro', 'flacinfo genre';
-is $flacinfo->{path}, '/music/empty.flac', 'flacinfo path';
+is $flacinfo->{file}, 'empty.flac', 'flacinfo path';
is $mp3info->{format}, 'MP3', 'mp3info format';
is $mp3info->{title}, 'Cellule', 'mp3info title';
is $mp3info->{tracknumber}, '01', 'mp3info tracknumber';
is $mp3info->{tracktotal}, '09', 'mp3info tracktotal';
is $mp3info->{genre}, 'Electro', 'mp3info genre';
-is $mp3info->{path}, '/music/empty.mp3', 'mp3info path';
+is $mp3info->{file}, 'empty.mp3', 'mp3info path';
+
+is $vorbisinfo->{format}, 'Vorbis', 'vorbisinfo format';
+is $vorbisinfo->{title}, 'Cellule', 'vorbisinfo title';
+is $vorbisinfo->{artist}, 'Silence', 'vorbisinfo artist';
+is $vorbisinfo->{year}, 2005, 'vorbisinfo year';
+is $vorbisinfo->{album}, 'L\'autre endroit', 'vorbisinfo album';
+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';