Sha256: 526e7472abab5c48af11083a76c1b5b55be10c7e016e26adf57f9e53f4718ac9
Contents?: true
Size: 535 Bytes
Versions: 13
Compression:
Stored size: 535 Bytes
Contents
require 'spec_helper' require 'ms/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 = MS::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 = MS::Isotope::AA::ATOM_COUNTS['A'] [:c, :h, :o, :n, :s].each {|key| hash[key].should == @alanine[key] } end end
Version data entries
13 entries across 13 versions & 1 rubygems