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

Mitsuteru C. Nakao nakao at dev.open-bio.org
Thu Feb 22 08:44:36 UTC 2007


Update of /home/repository/bioruby/bioruby/test/unit/bio/appl/iprscan
In directory dev.open-bio.org:/tmp/cvs-serv13975/test/unit/bio/appl/iprscan

Modified Files:
	test_report.rb 
Log Message:
* Added test codes.



Index: test_report.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/test/unit/bio/appl/iprscan/test_report.rb,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** test_report.rb	22 Feb 2007 07:53:49 -0000	1.2
--- test_report.rb	22 Feb 2007 08:44:34 -0000	1.3
***************
*** 95,101 ****
  
  
! 
! 
!   class TestIprscanTxtReport < Test::Unit::TestCase
      def setup
        test_txt = Bio::TestIprscanData.txt_format.read.split(/\n\nSequence/)[0]
--- 95,99 ----
  
  
!   class TestIprscanTxtEntry < Test::Unit::TestCase
      def setup
        test_txt = Bio::TestIprscanData.txt_format.read.split(/\n\nSequence/)[0]
***************
*** 158,165 ****
        assert_equal(ary, @obj.matches.first.go_terms)
      end
  
  
-   end # TestIprscanTxtReport
  
  
  
--- 156,176 ----
        assert_equal(ary, @obj.matches.first.go_terms)
      end
+   end # TestIprscanTxtEntry
  
  
  
+   class TestIprscanTxtReport < Test::Unit::TestCase
+     def setup
+       @test_txt = Bio::TestIprscanData.txt_format
+     end 
+ 
+     def test_reports_in_txt 
+       Bio::Iprscan::Report.reports_in_txt(@test_txt) do |report|
+         assert_equal(Bio::Iprscan::Report, report.class)
+       end
+     end
+ 
+ 
+   end # TestIprscanTxtReport
  
  




More information about the bioruby-cvs mailing list