[BioRuby-cvs] bioruby/test/unit/bio/db/embl test_sptr.rb,1.3,1.4

Mitsuteru C. Nakao nakao at dev.open-bio.org
Sat Jul 15 15:29:28 UTC 2006


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

Modified Files:
	test_sptr.rb 
Log Message:
* Refactered code for parsing CC lines.
* Added Bio::SPTR#ref method.
* Added comprehensive tests for the recent updates of UniProt. 
* Added OH line parser (Bio::SPTR#oh).
* Added HI line parser (Bio::SPTR#hi). 




Index: test_sptr.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/test/unit/bio/db/embl/test_sptr.rb,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** test_sptr.rb	16 Jun 2006 16:51:05 -0000	1.3
--- test_sptr.rb	15 Jul 2006 15:29:26 -0000	1.4
***************
*** 2,20 ****
  # test/unit/bio/db/embl/test_sptr.rb - Unit test for Bio::SPTR
  #
! #   Copyright (C) 2005 Mitsuteru Nakao <n at bioruby.org>
! #
! #  This library is free software; you can redistribute it and/or
! #  modify it under the terms of the GNU Lesser General Public
! #  License as published by the Free Software Foundation; either
! #  version 2 of the License, or (at your option) any later version.
! #
! #  This library is distributed in the hope that it will be useful,
[...1716 lines suppressed...]
!              {'NCBI_TaxID' => '35938', 'HostName' => 'Robinia pseudoacacia (Black locust)'},
!              {'NCBI_TaxID' => '23216', 'HostName' =>  'Rubus (bramble)'},
!              {'NCBI_TaxID' => '4113', 'HostName' => 'Solanum tuberosum (Potato)'},
!              {'NCBI_TaxID' => '13305', 'HostName' => 'Tulipa'},
!              {'NCBI_TaxID' => '3603', 'HostName' => 'Vitis'}]
!       sp = SPTR.new(data)
!       assert_equal(res, sp.oh)
!     end
! 
!     def test_OH_line_exception
!       data = "ID   TEST_ENTRY      STANDARD;      PRT;   393 AA.
! OH   NCBI_TaxID=23216x: Rubus (bramble)."
!       sp = SPTR.new(data)
!       assert_raise(ArgumentError) { sp.oh }
!     end
! 
!   end
! 
! end # module Bio
! 




More information about the bioruby-cvs mailing list