[BioRuby-cvs] bioruby/test/unit/bio test_alignment.rb,1.7,1.8

Naohisa Goto ngoto at dev.open-bio.org
Thu Dec 14 14:10:59 UTC 2006


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

Modified Files:
	test_alignment.rb 
Log Message:
Unit tests changed following the changes of Bio::Alignment.


Index: test_alignment.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/test/unit/bio/test_alignment.rb,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** test_alignment.rb	24 Jan 2006 14:11:34 -0000	1.7
--- test_alignment.rb	14 Dec 2006 14:10:57 -0000	1.8
***************
*** 545,576 ****
    end #class TestAlignmentEnumerableExtension
  
!   class TestAlignmentClustalWFormatter < Test::Unit::TestCase
      def setup
        @obj = Object.new
!       @obj.extend(Alignment::ClustalWFormatter)
      end
  
!     def test_have_same_name_true
        assert_equal([ 0, 1 ], @obj.instance_eval {
!                      have_same_name?([ 'ATP ATG', 'ATP ATA', 'BBB' ]) })
      end
  
      def test_have_same_name_false
        assert_equal(false, @obj.instance_eval {
!                have_same_name?([ 'GTP ATG', 'ATP ATA', 'BBB' ]) })
      end
  
      def test_avoid_same_name
        assert_equal([ 'ATP_ATG', 'ATP_ATA', 'BBB' ],
!                    @obj.instance_eval {
!                      avoid_same_name([ 'ATP ATG', 'ATP ATA', 'BBB' ]) })
      end
      def test_avoid_same_name_numbering
        assert_equal([ '0_ATP', '1_ATP', '2_BBB' ],
!                    @obj.instance_eval {
!                      avoid_same_name([ 'ATP', 'ATP', 'BBB' ]) })
      end
  
!   end #class TestAlignmentClustalWFormatter
  
  
--- 545,577 ----
    end #class TestAlignmentEnumerableExtension
  
!   class TestAlignmentOutput < Test::Unit::TestCase
      def setup
        @obj = Object.new
!       @obj.extend(Alignment::Output)
      end
  
!     def test_clustal_have_same_name_true
        assert_equal([ 0, 1 ], @obj.instance_eval {
!                __clustal_have_same_name?([ 'ATP ATG', 'ATP ATA', 'BBB' ]) })
      end
  
      def test_have_same_name_false
        assert_equal(false, @obj.instance_eval {
!                __clustal_have_same_name?([ 'GTP ATG', 'ATP ATA', 'BBB' ]) })
      end
  
      def test_avoid_same_name
        assert_equal([ 'ATP_ATG', 'ATP_ATA', 'BBB' ],
!                @obj.instance_eval {
!                  __clustal_avoid_same_name([ 'ATP ATG', 'ATP ATA', 'BBB' ]) })
      end
+ 
      def test_avoid_same_name_numbering
        assert_equal([ '0_ATP', '1_ATP', '2_BBB' ],
!                @obj.instance_eval {
!                  __clustal_avoid_same_name([ 'ATP', 'ATP', 'BBB' ]) })
      end
  
!   end #class TestAlignmentOutput
  
  




More information about the bioruby-cvs mailing list