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

Mitsuteru C. Nakao nakao at dev.open-bio.org
Tue Jul 17 14:16:53 UTC 2007


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

Modified Files:
	test_report.rb 
Log Message:
* Fixed a bug in Bio::Iprscan::Report.reports_in_raw (thanks ngoto-san).


Index: test_report.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/test/unit/bio/appl/iprscan/test_report.rb,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** test_report.rb	16 Jul 2007 19:21:33 -0000	1.5
--- test_report.rb	17 Jul 2007 14:16:50 -0000	1.6
***************
*** 224,227 ****
--- 224,239 ----
        @obj << Bio::Iprscan::Report.parse_in_raw(entry)
      end
+ 
+     def test_self_reports_in_raw
+       io = File.open(File.join(Bio::TestIprscanData::TestDataIprscan, 
+                                "merged.raw"))
+       result = []
+       Bio::Iprscan::Report.reports_in_raw(io) {|x| result << x }
+       assert_equal(@obj.size, result.size)
+       assert_equal(@obj.first.query_id, result.first.query_id)      
+       assert_equal(@obj.first.query_id, result.first.query_id)            
+       assert_equal(@obj[2].query_id, result[2].query_id)      
+       assert_equal(@obj.last.query_id, result.last.query_id)      
+     end
      
      def test_obj




More information about the bioruby-cvs mailing list