Sha256: 91277a2cdccbeb4176c63920fa569990c17cd865eef26647abcd1cdd2a7f2487
Contents?: true
Size: 547 Bytes
Versions: 8
Compression:
Stored size: 547 Bytes
Contents
require 'spec_helper' require 'mspire/isotope/aa' describe 'accessing an amino acid atom count' do before do @alanine = {:c=>3, :h=>5, :o=>1, :n=>1, :s=>0, :p=>0, :se=>0} end it 'residue can be accessed with a symbol' do hash = Mspire::Isotope::AA::ATOM_COUNTS[:A] [:c, :h, :o, :n, :s].each {|key| hash[key].should == @alanine[key] } end it 'residue can be accessed with a string' do hash = Mspire::Isotope::AA::ATOM_COUNTS['A'] [:c, :h, :o, :n, :s].each {|key| hash[key].should == @alanine[key] } end end
Version data entries
8 entries across 8 versions & 1 rubygems