File: 2.t

package info (click to toggle)
libaudio-wma-perl 1.3-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, forky, sid, trixie
  • size: 360 kB
  • sloc: perl: 2,256; makefile: 2
file content (28 lines) | stat: -rw-r--r-- 388 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#########################

use Test::More tests => 6;

BEGIN { use_ok('Audio::WMA') };

#########################

{
	my $wma = Audio::WMA->new('data/test2.wma');

	ok $wma;

	my $info = $wma->info();

	ok $info;

	ok($wma->info('sample_rate') == 44100);

	my $tags = $wma->tags();

	ok $tags;

	# This has an extended data object.
	is($wma->tags('author')->[1], ' John Doe');
}

__END__