[BioRuby-cvs] bioruby/test/unit/bio/appl/targetp test_report.rb, 1.2, 1.3

Mitsuteru C. Nakao nakao at pub.open-bio.org
Tue Nov 22 20:42:40 EST 2005


Update of /home/repository/bioruby/bioruby/test/unit/bio/appl/targetp
In directory pub.open-bio.org:/tmp/cvs-serv14766/test/unit/bio/appl/targetp

Modified Files:
	test_report.rb 
Log Message:
* Fixed the order of arguments of assert_equal method.


Index: test_report.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/test/unit/bio/appl/targetp/test_report.rb,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** test_report.rb	31 Oct 2005 17:59:46 -0000	1.2
--- test_report.rb	23 Nov 2005 01:42:38 -0000	1.3
***************
*** 88,96 ****
  
      def test_delimiter
!       assert_equal(Bio::TargetP::Report::DELIMITER, "\n \n")
      end
  
      def test_rs
!       assert_equal(Bio::TargetP::Report::RS, "\n \n")
      end
  
--- 88,96 ----
  
      def test_delimiter
!       assert_equal("\n \n", Bio::TargetP::Report::DELIMITER)
      end
  
      def test_rs
!       assert_equal("\n \n", Bio::TargetP::Report::RS)
      end
  
***************
*** 105,121 ****
  
      def test_version
!       assert_equal(@obj.version, '1.0')
      end
  
      def test_query_sequences
!       assert_equal(@obj.query_sequences, 0)
      end
  
      def test_cleavage_site_prediction
!       assert_equal(@obj.cleavage_site_prediction, 'not included')
      end
  
      def test_networks
!       assert_equal(@obj.networks, 'PLANT')
      end
  
--- 105,121 ----
  
      def test_version
!       assert_equal('1.0', @obj.version)
      end
  
      def test_query_sequences
!       assert_equal(0, @obj.query_sequences)
      end
  
      def test_cleavage_site_prediction
!       assert_equal('not included', @obj.cleavage_site_prediction)
      end
  
      def test_networks
!       assert_equal('PLANT', @obj.networks)
      end
  
***************
*** 123,158 ****
        hash = {"Name"=>"MGI_2141503", "Loc."=>"_", "RC"=>3, "SP"=>0.271,
                "other"=>0.844, "mTP"=>0.161, "cTP"=>0.031, "Length"=>640}
!       assert_equal(@obj.pred, hash)
!       assert_equal(@obj.prediction, hash)
      end
  
      def test_cutoff
        hash = {"SP"=>0.0, "other"=>0.0, "mTP"=>0.0, "cTP"=>0.0}
!       assert_equal(@obj.cutoff, hash)
      end
  
  
      def test_entry_id
!       assert_equal(@obj.entry_id, 'MGI_2141503')
      end
  
      def test_name
!       assert_equal(@obj.name, 'MGI_2141503')
      end
  
      def test_query_len
!       assert_equal(@obj.query_len, 640)
      end
  
      def test_length
!       assert_equal(@obj.length, 640)
      end
  
      def test_loc
!       assert_equal(@obj.loc, '_')
      end
  
      def test_rc
!       assert_equal(@obj.rc, 3)
      end
    end # class TestTargetPReport
--- 123,158 ----
        hash = {"Name"=>"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



More information about the bioruby-cvs mailing list