Sha256: 808fbd482402b20b3990804e42e8bc6a98c8d42471738cff19593b09f4d420d3
Contents?: true
Size: 920 Bytes
Versions: 2
Compression:
Stored size: 920 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' require_gem 'catori' require 'audioinfo' require 'test/unit' class AudioInfoTestCase < Test::Unit::TestCase def initialize(*args) super @base=File.dirname(__FILE__) end def test_mp3 oInfo=::AudioInfo.infoFile(@base+"/saw.mp3") assert_general(oInfo) end def test_mpc oInfo=::AudioInfo.infoFile(@base+"/saw.mpc") assert_general(oInfo) end def test_flac oInfo=::AudioInfo.infoFile(@base+"/saw.flac") assert_general(oInfo) end def test_ogg oInfo=::AudioInfo.infoFile(@base+"/saw.ogg") assert_general(oInfo) end def test_ape oInfo=::AudioInfo.infoFile(@base+"/saw.ape") assert_general(oInfo) end def assert_general(oInfo) assert_equal("Saw",oInfo.title) assert_equal("Claudio Bustos",oInfo.artist) assert_equal("2005",oInfo.year) assert_equal("Catori",oInfo.album) assert_equal(1,oInfo.tracknumber.to_i) end end # arch-tag: test
Version data entries
2 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
catori-0.2.5 | tests/test_audioinfo.rb |
catori-0.2.5 | ./tests/test_audioinfo.rb |