Sha256: b5ce86d1f23fc59ae5fa400e26bd3bb3b41febd9726e9033ed92925510c69c1a

Contents?: true

Size: 427 Bytes

Versions: 15

Compression:

Stored size: 427 Bytes

Contents

require 'spec_helper'

require 'mspire/mass/aa'

describe Mspire::Mass::AA do
  it 'provides string and symbol access to element masses' do
    mono = Mspire::Mass::AA::MONO

    mono['C'].should == 103.0091844778
    mono[:C].should == mono['C']

    Mspire::Mass::AA[:C].should == mono[:C] # <- not a hash but a method

    avg = Mspire::Mass::AA::AVG
    avg['C'].should == 103.1429
    avg[:C].should == avg['C']
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
mspire-0.10.8.0 spec/mspire/mass/aa_spec.rb
mspire-0.10.7.3 spec/mspire/mass/aa_spec.rb
mspire-0.10.7.2 spec/mspire/mass/aa_spec.rb
mspire-0.10.7.1 spec/mspire/mass/aa_spec.rb
mspire-0.10.7 spec/mspire/mass/aa_spec.rb
mspire-0.10.6 spec/mspire/mass/aa_spec.rb
mspire-0.10.5 spec/mspire/mass/aa_spec.rb
mspire-0.10.4 spec/mspire/mass/aa_spec.rb
mspire-0.10.3 spec/mspire/mass/aa_spec.rb
mspire-0.10.2 spec/mspire/mass/aa_spec.rb
mspire-0.10.1 spec/mspire/mass/aa_spec.rb
mspire-0.10.0 spec/mspire/mass/aa_spec.rb
mspire-0.9.2 spec/mspire/mass/aa_spec.rb
mspire-0.9.1 spec/mspire/mass/aa_spec.rb
mspire-0.9.0 spec/mspire/mass/aa_spec.rb