Sha256: 84f185a9f72e727ece14b52a12c1461fbc92685b7ca846804a03930afef09880
Contents?: true
Size: 1.04 KB
Versions: 2
Compression:
Stored size: 1.04 KB
Contents
if(File::exists?("../ext/rb_cdio.so")) require "../ext/rb_cdio" else require 'rubygems' require_gem "rb_cdio",">=0.2" end require 'test/unit' class Testtoc < Test::Unit::TestCase def setup @data = File.expand_path(File.dirname(__FILE__)+"/data") end def teardown end # def teardown # end def test_good_toc ["cdtext.toc", "t1.toc", "t2.toc", "t3.toc", "t4.toc", "t5.toc", "t6.toc", "t7.toc", "t8.toc", "t9.toc", "data1.toc", "data2.toc", "data5.toc", "data6.toc", "data7.toc", "vcd2.toc"].each {|toc| toc=@data+"/"+toc assert(CdIo.is_tocfile(toc),"Incorrect: "+toc+" doesn't parse as a cdrdao TOC file") } end def test_bad_toc ["bad-msf-1.toc", "bad-msf-2.toc", "bad-msf-3.toc", "bad-cat1.toc", "bad-cat2.toc", "bad-cat3.toc", "bad-file.toc", "bad-mode1.toc"].each do |toc| toc=@data+"/"+toc assert(!CdIo.is_tocfile(toc),"Incorrect: "+toc+" parses as a cdrdao TOC file"); end end end
Version data entries
2 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rb_cdio-0.2.1 | ./test/test_toc.rb |
rb_cdio-0.2.1 | test/test_toc.rb |