[BioRuby-cvs] bioruby/test/unit/bio/db test_prosite.rb,1.2,1.3
Katayama Toshiaki
k at pub.open-bio.org
Sun Dec 18 13:22:01 EST 2005
Update of /home/repository/bioruby/bioruby/test/unit/bio/db
In directory pub.open-bio.org:/tmp/cvs-serv30403/test/unit/bio/db
Modified Files:
test_prosite.rb
Log Message:
* fixed to pass the tests
Index: test_prosite.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/test/unit/bio/db/test_prosite.rb,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** test_prosite.rb 23 Nov 2005 11:32:13 -0000 1.2
--- test_prosite.rb 18 Dec 2005 18:21:58 -0000 1.3
***************
*** 1438,1457 ****
def test_pa2re
! assert_equal('', @obj.pa2re)
! end
!
! def test_ma2re
! assert_raise(@obj.ma2re, NotImplementedError)
end
def test_self_pa2re
! assert(Bio::PROSITE.pattern2re)
! end
!
! def test_self_ma2re
! assert(Bio::PROSITE.profile2re)
end
-
end # class TestPROSITE
end
--- 1438,1450 ----
def test_pa2re
! pa = '[AC]-x-V-x(4)-{ED}.'
! assert_equal(/[AC].V.{4}[^ED]/, @obj.pa2re(pa))
end
def test_self_pa2re
! pa = '[AC]-x-V-x(4)-{ED}.'
! assert_equal(/[AC].V.{4}[^ED]/, Bio::PROSITE.pa2re(pa))
end
end # class TestPROSITE
end
More information about the bioruby-cvs
mailing list