# # test/unit/bio/appl/targetp/test_report.rb - Unit test for Bio::TargetP::Report # # Copyright: Copyright (C) 2005 Mitsuteru Nakao # License:: The Ruby License # # $Id: test_report.rb,v 1.5 2007/04/05 23:35:43 trevor Exp $ # require 'pathname' libpath = Pathname.new(File.join(File.dirname(__FILE__), ['..'] * 5, 'lib')).cleanpath.to_s $:.unshift(libpath) unless $:.include?(libpath) require 'test/unit' require 'bio/appl/targetp/report' module Bio TargetPReport_plant =<"MGI_2141503", "Loc."=>"_", "RC"=>3, "SP"=>0.271, "other"=>0.844, "mTP"=>0.161, "cTP"=>0.031, "Length"=>640} assert_equal(hash, @obj.pred) assert_equal(hash, @obj.prediction) end def test_cutoff hash = {"SP"=>0.0, "other"=>0.0, "mTP"=>0.0, "cTP"=>0.0} assert_equal(hash, @obj.cutoff) end def test_entry_id assert_equal('MGI_2141503', @obj.entry_id) end def test_name assert_equal('MGI_2141503', @obj.name) end def test_query_len assert_equal(640, @obj.query_len) end def test_length assert_equal(640, @obj.length) end def test_loc assert_equal('_', @obj.loc) end def test_rc assert_equal(3, @obj.rc) end end # class TestTargetPReport end