Sha256: 343fec656a2433a4f29e03a2bafa9cd6a5d54be78f4db2f8624ad77a1a22bcbe

Contents?: true

Size: 378 Bytes

Versions: 1

Compression:

Stored size: 378 Bytes

Contents

require 'helper'

class TestBioBioGravy < Test::Unit::TestCase
  should "hydrophobicity" do
    assert_equal [1.8, 2.5, -3.5], Bio::Sequence::AA.new('ACD').hydrophopathy_profile
  end
  
  should "gravy" do 
    assert_equal -4, (Bio::Sequence::AA.new('ACDCD').grand_average_of_hydropathy*100).to_i
    assert_equal -4, (Bio::Sequence::AA.new('ACDCD').gravy*100).to_i
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bio-hydropathy-0.0.1 test/test_bio-hydropathy.rb