]> iEval git - app-musicexpo.git/blame_incremental - t/App-MusicExpo.t
Initial commit
[app-musicexpo.git] / t / App-MusicExpo.t
... / ...
CommitLineData
1#!/usr/bin/perl -wT
2use v5.14;
3use warnings;
4
5use Test::More tests => 19;
6
7use Storable qw/thaw/;
8
9BEGIN { use_ok('App::MusicExpo'); }
10
11$App::MusicExpo::caching = 0;
12
13my $flacinfo = thaw App::MusicExpo::flacinfo 'empty.flac';
14my $mp3info = thaw App::MusicExpo::mp3info 'empty.mp3';
15
16is $flacinfo->{format}, 'FLAC', 'flacinfo format';
17is $flacinfo->{title}, 'Cellule', 'flacinfo title';
18is $flacinfo->{artist}, 'Silence', 'flacinfo artist';
19is $flacinfo->{year}, 2005, 'flacinfo year';
20is $flacinfo->{album}, 'L'autre endroit', 'flacinfo album';
21is $flacinfo->{tracknumber}, '01', 'flacinfo tracknumber';
22is $flacinfo->{tracktotal}, '09', 'flacinfo tracktotal';
23is $flacinfo->{genre}, 'Electro', 'flacinfo genre';
24is $flacinfo->{path}, '/music/empty.flac', 'flacinfo path';
25
26is $mp3info->{format}, 'MP3', 'mp3info format';
27is $mp3info->{title}, 'Cellule', 'mp3info title';
28is $mp3info->{artist}, 'Silence', 'mp3info artist';
29is $mp3info->{year}, 2005, 'mp3info year';
30is $mp3info->{album}, 'L'autre endroit', 'mp3info album';
31is $mp3info->{tracknumber}, '01', 'mp3info tracknumber';
32is $mp3info->{tracktotal}, '09', 'mp3info tracktotal';
33is $mp3info->{genre}, 'Electro', 'mp3info genre';
34is $mp3info->{path}, '/music/empty.mp3', 'mp3info path';
This page took 0.02652 seconds and 4 git commands to generate.