[BioRuby-cvs] bioruby/test/unit/bio/db test_gff.rb,1.1,1.2

Mitsuteru C. Nakao nakao at pub.open-bio.org
Wed Nov 23 06:29:18 EST 2005


Update of /home/repository/bioruby/bioruby/test/unit/bio/db
In directory pub.open-bio.org:/tmp/cvs-serv16501/test/unit/bio/db

Modified Files:
	test_gff.rb 
Log Message:
* Fixed the order of arguments of assert_equal.


Index: test_gff.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/test/unit/bio/db/test_gff.rb,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test_gff.rb	27 Oct 2005 09:27:52 -0000	1.1
--- test_gff.rb	23 Nov 2005 11:29:16 -0000	1.2
***************
*** 46,51 ****
  
      def test_records
!       assert_equal(@obj.records.size, 8)
!       assert_equal(@obj.records[0].class, Bio::GFF::Record)
      end
  
--- 46,51 ----
  
      def test_records
!       assert_equal(8, @obj.records.size)
!       assert_equal(Bio::GFF::Record, @obj.records[0].class)
      end
  
***************
*** 55,59 ****
    class TestGFF2 < Test::Unit::TestCase
      def test_version
!       assert_equal(Bio::GFF2::VERSION, 2)
      end
    end
--- 55,59 ----
    class TestGFF2 < Test::Unit::TestCase
      def test_version
!       assert_equal(2, Bio::GFF2::VERSION)
      end
    end
***************
*** 62,66 ****
    class TestGFF3 < Test::Unit::TestCase
      def test_version
!       assert_equal(Bio::GFF3::VERSION, 3)
      end
    end
--- 62,66 ----
    class TestGFF3 < Test::Unit::TestCase
      def test_version
!       assert_equal(3, Bio::GFF3::VERSION)
      end
    end
***************
*** 77,118 ****
  
      def test_seqname
!       assert_equal(@obj.seqname, 'I')
      end
  
      def test_source
!       assert_equal(@obj.source, 'sgd')
      end
  
      def test_feature
!       assert_equal(@obj.feature, 'gene')
      end
  
      def test_start
!       assert_equal(@obj.start, '151453')
      end
  
      def test_end
!       assert_equal(@obj.end, '151591')
      end
  
      def test_score
!       assert_equal(@obj.score, '.')
      end
  
      def test_strand
!       assert_equal(@obj.strand, '+')
      end
  
      def test_frame
!       assert_equal(@obj.frame, '.')
      end
  
      def test_attributes
        at = {"Note"=>"Chromosome I Centromere", "Gene"=>"CEN1"}
!       assert_equal(@obj.attributes, at)
      end
  
      def test_comments
!       assert_equal(@obj.comments, '')
      end
  
--- 77,118 ----
  
      def test_seqname
!       assert_equal('I', @obj.seqname)
      end
  
      def test_source
!       assert_equal('sgd', @obj.source)
      end
  
      def test_feature
!       assert_equal('gene', @obj.feature)
      end
  
      def test_start
!       assert_equal('151453', @obj.start)
      end
  
      def test_end
!       assert_equal('151591', @obj.end)
      end
  
      def test_score
!       assert_equal('.', @obj.score)
      end
  
      def test_strand
!       assert_equal('+', @obj.strand)
      end
  
      def test_frame
!       assert_equal('.', @obj.frame)
      end
  
      def test_attributes
        at = {"Note"=>"Chromosome I Centromere", "Gene"=>"CEN1"}
!       assert_equal(at, @obj.attributes)
      end
  
      def test_comments
!       assert_equal('', @obj.comments)
      end
  
***************
*** 131,135 ****
        record.seqname = name
        @obj.records << record
!       assert_equal(@obj.records[0].seqname, name)
      end
  
--- 131,135 ----
        record.seqname = name
        @obj.records << record
!       assert_equal(name, @obj.records[0].seqname)
      end
  



More information about the bioruby-cvs mailing list