[BioRuby-cvs] bioruby/test/bio test_sequence.rb,1.1,1.2

Katayama Toshiaki k at pub.open-bio.org
Wed Aug 10 08:53:56 EDT 2005


Update of /home/repository/bioruby/bioruby/test/bio
In directory pub.open-bio.org:/tmp/cvs-serv6421/test/bio

Modified Files:
	test_sequence.rb 
Log Message:
* assert_in_delta is used instead of assert_equal for molecular_weight


Index: test_sequence.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/test/bio/test_sequence.rb,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test_sequence.rb	12 Nov 2004 02:27:08 -0000	1.1
--- test_sequence.rb	10 Aug 2005 12:53:53 -0000	1.2
***************
*** 31,37 ****
  	class TestSequence < Test::Unit::TestCase
  		def setup
! 		@na = Sequence::NA.new('atgcatgcatgcatgcaaaa')
  		@rna = Sequence::NA.new('augcaugcaugcaugcaaaa')
! 		@aa = Sequence::AA.new('ACDEFGHIKLMNPQRSTVWYU')
  		end
  
--- 31,37 ----
  	class TestSequence < Test::Unit::TestCase
  		def setup
! 		@na  = Sequence::NA.new('atgcatgcatgcatgcaaaa')
  		@rna = Sequence::NA.new('augcaugcaugcaugcaaaa')
! 		@aa  = Sequence::AA.new('ACDEFGHIKLMNPQRSTVWYU')
  		end
  
***************
*** 240,248 ****
  
  		def test_dna_molecular_weight
! 		assert_equal(6214.715, @na.molecular_weight)
  		end
  		
  		def test_rna_molecular_weight
! 		assert_equal(6478.595, @rna.molecular_weight)
  		end
  
--- 240,248 ----
  
  		def test_dna_molecular_weight
! 		assert_in_delta(6174.3974, @na.molecular_weight, 1e-5)
  		end
  		
  		def test_rna_molecular_weight
! 		assert_in_delta(6438.2774, @rna.molecular_weight, 1e-5)
  		end
  



More information about the bioruby-cvs mailing list