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

Mitsuteru C. Nakao nakao at pub.open-bio.org
Thu Oct 27 05:38:14 EDT 2005


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

Modified Files:
	test_embl.rb 
Log Message:
* Changed Bio::EMBL::Common to Bio::EMBLDB::Common.


Index: test_embl.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/test/unit/bio/db/embl/test_embl.rb,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test_embl.rb	25 Sep 2005 05:07:12 -0000	1.1
--- test_embl.rb	27 Oct 2005 09:38:12 -0000	1.2
***************
*** 41,59 ****
--- 41,65 ----
        assert(@obj.id_line)
      end
+ 
      def test_id_line_iterator
        assert(@obj.id_line {|key, value| })
      end
+ 
      def test_id_line_entry_name
        assert_equal(@obj.id_line('ENTRY_NAME'), 'AB090716')
      end
+ 
      def test_id_line_data_class
        assert_equal(@obj.id_line('DATA_CLASS'), 'standard')
      end
+ 
      def test_id_line_molecule_type
        assert_equal(@obj.id_line('MOLECULE_TYPE'), 'genomic DNA')
      end
+ 
      def test_id_line_division
        assert_equal(@obj.id_line('DIVISION'), 'VRT')
      end
+ 
      def test_id_line_sequence_length
        assert_equal(@obj.id_line('SEQUENCE_LENGTH'), 166)
***************
*** 83,91 ****
      end
  
!     def test_ac # Bio::EMBLDB#ac
        ac = ['AB090716']
        assert_equal(@obj.ac, ac)
        assert_equal(@obj.accessions, ac)
      end
      def test_accession
        assert_equal(@obj.accession, 'AB090716')
--- 89,100 ----
      end
  
!     # Bio::EMBLDB::COMMON#ac
!     def test_ac 
        ac = ['AB090716']
        assert_equal(@obj.ac, ac)
        assert_equal(@obj.accessions, ac)
      end
+ 
+     # Bio::EMBLDB::COMMON#accession
      def test_accession
        assert_equal(@obj.accession, 'AB090716')
***************
*** 103,121 ****
        assert(@obj.dt)
      end
      def test_dt_iterator
        assert(@obj.dt {|key, value| })
      end
      def test_dt_created
        assert_equal(@obj.dt('created'), '25-OCT-2002 (Rel. 73, Created)')
      end
      def test_dt_updated
        assert_equal(@obj.dt('updated'), '29-NOV-2002 (Rel. 73, Last updated, Version 2)')
      end
  
!     def test_de # Bio::EMBL::COMMON#de
        assert_equal(@obj.de, "Haplochromis sp. 'muzu, rukwa' LWS gene for long wavelength-sensitive opsin, partial cds, specimen_voucher:specimen No. HT-9361.")
      end
  
!     def test_kw # Bio::EMBL::COMMON#kw
        k = []
        assert_equal(@obj.kw, [])
--- 112,135 ----
        assert(@obj.dt)
      end
+ 
      def test_dt_iterator
        assert(@obj.dt {|key, value| })
      end
+ 
      def test_dt_created
        assert_equal(@obj.dt('created'), '25-OCT-2002 (Rel. 73, Created)')
      end
+ 
      def test_dt_updated
        assert_equal(@obj.dt('updated'), '29-NOV-2002 (Rel. 73, Last updated, Version 2)')
      end
  
!     # Bio::EMBLDB::COMMON#de
!     def test_de
        assert_equal(@obj.de, "Haplochromis sp. 'muzu, rukwa' LWS gene for long wavelength-sensitive opsin, partial cds, specimen_voucher:specimen No. HT-9361.")
      end
  
!     # Bio::EMBLDB::COMMON#kw
!     def test_kw 
        k = []
        assert_equal(@obj.kw, [])
***************
*** 133,153 ****
      end
  
!     def test_oc # Bio::EMBL::COMMON#oc
        assert_equal(@obj.oc.first, 'Eukaryota')
      end
  
!     def test_og # Bio::EMBL::COMMON#og
        assert_equal(@obj.og, [])
      end
  
!     def test_ref # Bio::EMBL::COMMON#ref
        assert_equal(@obj.ref.size, 2)
      end
  
!     def test_references # Bio::EMBL::COMMON#references
        assert_equal(@obj.references.class, Bio::References)
      end
  
!     def test_dr # Bio::EMBL::COMMON#dr
        assert_equal(@obj.dr, {})
      end
--- 147,172 ----
      end
  
!     # Bio::EMBLDB::COMMON#oc
!     def test_oc 
        assert_equal(@obj.oc.first, 'Eukaryota')
      end
  
!     # Bio::EMBLDB::COMMON#og
!     def test_og 
        assert_equal(@obj.og, [])
      end
  
!     # Bio::EMBLDB::COMMON#ref
!     def test_ref
        assert_equal(@obj.ref.size, 2)
      end
  
!     # Bio::EMBLDB::COMMON#references
!     def test_references 
        assert_equal(@obj.references.class, Bio::References)
      end
  
!     # Bio::EMBLDB::COMMON#dr
!     def test_dr
        assert_equal(@obj.dr, {})
      end
***************
*** 158,169 ****
  
      def test_ft
!       assert(@obj.ft)
!       assert(@obj.features)
      end
      def test_ft_iterator
!       assert(@obj.ft {|x| })
      end
      def test_ft_accessor
!       assert_equal(@obj.ft(1).features.first.feature, 'source')
      end
  
--- 177,191 ----
  
      def test_ft
!       assert_equal(@obj.ft.class, Bio::Features)
      end
+ 
      def test_ft_iterator
!       @obj.ft.each do |feature|
!         assert_equal(feature.class, Bio::Feature)
!       end
      end
+ 
      def test_ft_accessor
!       assert_equal(@obj.ft.features[1].feature, 'CDS')
      end
  
***************
*** 188,193 ****
  
      def test_sq
!       assert_equal(@obj.sq, {"a"=>29, "c"=>42, "ntlen"=>166, "g"=>41, "t"=>54, "other"=>0})
      end
      def test_sq_get
        assert_equal(@obj.sq("a"), 29)
--- 210,217 ----
  
      def test_sq
!       data = {"a"=>29, "c"=>42, "ntlen"=>166, "g"=>41, "t"=>54, "other"=>0}
!       assert_equal(@obj.sq, data)
      end
+ 
      def test_sq_get
        assert_equal(@obj.sq("a"), 29)



More information about the bioruby-cvs mailing list