Sha256: 333d652f961957b38f7cbd3a1c6ec7e8c9e27ca02a8adafe47f51f9600b9bb39
Contents?: true
Size: 916 Bytes
Versions: 2
Compression:
Stored size: 916 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' require '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.6 | ./tests/test_audioinfo.rb |
catori-0.2.6 | tests/test_audioinfo.rb |