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

Mitsuteru C. Nakao nakao at dev.open-bio.org
Thu Oct 5 07:39:32 UTC 2006


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

Modified Files:
	test_sptr.rb 
Log Message:
* Fixed Bio::SPTR bugs reported by SONDEREGGER Bernhard.
  - Now a leading uncapital letter OS line is acceptable. (cf. uniprot:Q32725).
  - Fixed regexp for parsing the OS line from uniprot:O63147.



Index: test_sptr.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/test/unit/bio/db/embl/test_sptr.rb,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** test_sptr.rb	15 Jul 2006 15:29:26 -0000	1.4
--- test_sptr.rb	5 Oct 2006 07:39:30 -0000	1.5
***************
*** 1758,1761 ****
--- 1758,1775 ----
    end
  
+   class TestOSLine < Test::Unit::TestCase
+     def test_uncapitalized_letter_Q32725_9POAL
+       data = "OS   unknown cyperaceous sp.\n"
+       sp = SPTR.new(data)
+       assert_equal('unknown cyperaceous sp.', sp.os.first['os'])
+     end
+ 
+     def test_period_trancation_O63147
+       data = "OS   Hippotis sp. Clark and Watts 825.\n"
+       sp = SPTR.new(data)
+       assert_equal('Hippotis sp. Clark and Watts 825.', sp.os.first['os'])
+     end
+   end
+ 
  end # module Bio
  




More information about the bioruby-cvs mailing list