[BioRuby-cvs] bioruby/test/unit/bio/util/restriction_enzyme test_analysis.rb, 1.5, 1.6

Trevor Wennblom trevor at dev.open-bio.org
Tue Jan 2 07:33:48 UTC 2007


Update of /home/repository/bioruby/bioruby/test/unit/bio/util/restriction_enzyme
In directory dev.open-bio.org:/tmp/cvs-serv3272/test/unit/bio/util/restriction_enzyme

Modified Files:
	test_analysis.rb 
Log Message:


Index: test_analysis.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/test/unit/bio/util/restriction_enzyme/test_analysis.rb,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** test_analysis.rb	2 Jan 2007 06:18:07 -0000	1.5
--- test_analysis.rb	2 Jan 2007 07:33:46 -0000	1.6
***************
*** 31,35 ****
      @obj_4 = @t.cut('atgcatgcatgc', e1)
  
!     @obj_4bd = @t.cut('atgcatgcatgccccc', e1, 'cc^c')
  
      e2 = @enz.new('atgcatgc', [3,5])
--- 31,35 ----
      @obj_4 = @t.cut('atgcatgcatgc', e1)
  
!     @obj_4bd = @t.cut('atgcatgcatgccc', e1, 'cc^c') # mix of always cut and sometimes cut
  
      e2 = @enz.new('atgcatgc', [3,5])
***************
*** 91,105 ****
  =end
      
-     
-     e1 = @enz.new('atgcatgc', [3,3])
-     @obj_4 = @t.cut('atgcatgcatgc', e1)
-     
      assert_equal(["atg", "atgcatg", "catgc", "catgcatgc"], @obj_5.primary)
      assert_equal(["a", "ag", "g", "ga"], @obj_6.primary)
      assert_equal(["ccaggaaaaaga", "ccaggaaag", "cctggaaaagttaac", "ga"], @obj_7.primary)
      assert_equal(["aac", "ccaggaaaaaga", "ccaggaaag", "cctggaaaagtt", "ga"], @obj_8.primary)
!         
!     assert_equal(["atg", "atgcatg", "c", "catg", "catgcc", "catgccc", "cc", "cc"], @obj_4bd.primary)
!     assert_equal(["gg", "gg", "ggg", "gtac", "gtacg", "gtacgg", "tac", "tacgtac"], @obj_4bd.complement)
    end
  
--- 91,121 ----
  =end
      
      assert_equal(["atg", "atgcatg", "catgc", "catgcatgc"], @obj_5.primary)
      assert_equal(["a", "ag", "g", "ga"], @obj_6.primary)
      assert_equal(["ccaggaaaaaga", "ccaggaaag", "cctggaaaagttaac", "ga"], @obj_7.primary)
      assert_equal(["aac", "ccaggaaaaaga", "ccaggaaag", "cctggaaaagtt", "ga"], @obj_8.primary)
!     
! =begin
!     e1 = @enz.new('atgcatgc', [3,3])
!     @obj_4bd = @t.cut('atgcatgcatgccc', e1, 'cc^c') # mix of sometimes cut and always cut
! 
!     [#<struct Bio::RestrictionEnzyme::Analysis::UniqueFragment
!       primary="atgcatg",
!       complement="tacgtac">,
!      #<struct Bio::RestrictionEnzyme::Analysis::UniqueFragment
!       primary="catgcc",
!       complement="gtacg ">,
!      #<struct Bio::RestrictionEnzyme::Analysis::UniqueFragment
!       primary=" c",
!       complement="gg">,
!      #<struct Bio::RestrictionEnzyme::Analysis::UniqueFragment
!       primary="atg",
!       complement="tac">,
!      #<struct Bio::RestrictionEnzyme::Analysis::UniqueFragment
!       primary="catg",
!       complement="gtac">]
! =end
!     assert_equal(["atg", "atgcatg", "c", "catg", "catgcc"], @obj_4bd.primary)    
!     assert_equal(["gg", "gtac", "gtacg", "tac", "tacgtac"], @obj_4bd.complement)
    end
  




More information about the bioruby-cvs mailing list