[BioRuby-cvs] bioruby/test/unit/bio/db/embl test_embl_to_bioseq.rb, 1.1.2.1, 1.1.2.2

Naohisa Goto ngoto at dev.open-bio.org
Tue Jun 17 16:09:55 UTC 2008


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

Modified Files:
      Tag: BRANCH-biohackathon2008
	test_embl_to_bioseq.rb 
Log Message:
Unit test related to Bio::Sequence#date_created and date_modified are
changed because these methods are changed to store Date (or Time or DateTime)
objects instead of String objects.


Index: test_embl_to_bioseq.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/test/unit/bio/db/embl/Attic/test_embl_to_bioseq.rb,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -d -r1.1.2.1 -r1.1.2.2
*** test_embl_to_bioseq.rb	20 Feb 2008 09:56:22 -0000	1.1.2.1
--- test_embl_to_bioseq.rb	17 Jun 2008 16:09:53 -0000	1.1.2.2
***************
*** 53,59 ****
      end
      
!     def test_dates
!       assert_equal('25-OCT-2002 (Rel. 73, Created)', @bio_seq.date_created)
!       assert_equal('14-NOV-2006 (Rel. 89, Last updated, Version 3)', @bio_seq.date_modified)
      end
      
--- 53,76 ----
      end
      
!     def test_date_created
!       # '25-OCT-2002 (Rel. 73, Created)'
!       assert_equal(Date.parse('25-OCT-2002'), @bio_seq.date_created)
!     end
! 
!     def test_date_modified
!       # '14-NOV-2006 (Rel. 89, Last updated, Version 3)'
!       assert_equal(Date.parse('14-NOV-2006'), @bio_seq.date_modified)
!     end
! 
!     def test_release_created
!       assert_equal('73', @bio_seq.release_created)
!     end
! 
!     def test_release_modified
!       assert_equal('89', @bio_seq.release_modified)
!     end
! 
!     def test_entry_version
!       assert_equal('3', @bio_seq.entry_version)
      end
      
***************
*** 129,135 ****
      end
      
!     def test_dates
!       assert_equal('25-OCT-2002 (Rel. 73, Created)', @bio_seq_2.date_created)
!       assert_equal('14-NOV-2006 (Rel. 89, Last updated, Version 3)', @bio_seq_2.date_modified)
      end
      
--- 146,169 ----
      end
      
!     def test_date_created
!       # '25-OCT-2002 (Rel. 73, Created)'
!       assert_equal(Date.parse('25-OCT-2002'), @bio_seq_2.date_created)
!     end
! 
!     def test_date_modified
!       # '14-NOV-2006 (Rel. 89, Last updated, Version 3)'
!       assert_equal(Date.parse('14-NOV-2006'), @bio_seq_2.date_modified)
!     end
! 
!     def test_release_created
!       assert_equal('73', @bio_seq_2.release_created)
!     end
! 
!     def test_release_modified
!       assert_equal('89', @bio_seq_2.release_modified)
!     end
! 
!     def test_entry_version
!       assert_equal('3', @bio_seq_2.entry_version)
      end
      




More information about the bioruby-cvs mailing list