require "../ext/rb_cdio" require 'test/unit' class Testbincue < Test::Unit::TestCase def setup @data = File.dirname(__FILE__)+"/data" end # def teardown # end def test_good_cues %w{cdda.cue isofs-m1.cue}.each {|cue| cue=@data+"/"+cue assert(CdIo.is_cuefile(cue),"Incorrect: "+cue+" doesn't parse as a CDRWin CUE file") } end def test_bad_cues ["bad-cat1.cue", "bad-cat2.cue", "bad-cat3.cue", "bad-mode1.cue", "bad-msf-1.cue", "bad-msf-2.cue", "bad-msf-3.cue"].each do |cue| cue=@data+"/"+cue assert(!CdIo.is_cuefile(cue),"Incorrect: "+cue+" parses as a CDRWin CUE file."); end end end