[BioRuby-cvs] bioruby/test/functional/bio/io test_ensembl.rb, 1.2, 1.3

Mitsuteru C. Nakao nakao at dev.open-bio.org
Thu Mar 29 08:00:06 UTC 2007


Update of /home/repository/bioruby/bioruby/test/functional/bio/io
In directory dev.open-bio.org:/tmp/cvs-serv10014/test/functional/bio/io

Modified Files:
	test_ensembl.rb 
Log Message:
* Added tests.


Index: test_ensembl.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/test/functional/bio/io/test_ensembl.rb,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** test_ensembl.rb	29 Mar 2007 05:50:43 -0000	1.2
--- test_ensembl.rb	29 Mar 2007 08:00:04 -0000	1.3
***************
*** 48,51 ****
--- 48,57 ----
    end
  
+   def test_fasta_exportview_with_hash_4th_params
+     fna = @serv.exportview(4, 1149206, 1149209, :upstream => 10)
+     fna10 = @serv.exportview(4, 1149196, 1149209)
+     assert_equal(fna10, fna)
+   end
+ 
    def test_fna_exportview_with_named_args
      seq = ">4 dna:chromosome chromosome:NCBI36:4:1149206:1149209:1\nGAGA\n"
***************
*** 56,59 ****
--- 62,76 ----
    end 
  
+   def test_fasta_exportview_with_named_args_and_hash_4th_params
+     fna = @serv.exportview(:seq_region_name => 4, 
+                            :anchor1 => 1149206, 
+                            :anchor2 => 1149209, 
+                            :upstream => 10)
+     fna10 = @serv.exportview(:seq_region_name => 4, 
+                              :anchor1 => 1149196, 
+                              :anchor2 => 1149209)
+     assert_equal(fna10, fna)
+   end
+ 
     def test_gff_exportview
       line = "chromosome:NCBI36:4:1149206:1149209:1\tEnsembl\tGene\t-839\t2747\t.\t+\t.\tgene_id=ENSG00000206158; transcript_id=ENST00000382964; exon_id=ENSE00001494097; gene_type=KNOWN_protein_coding\n"
***************
*** 81,84 ****
--- 98,102 ----
     end 
  
+ 
  end
  




More information about the bioruby-cvs mailing list