Sha256: 982b655f63481f2f9b779b1e076f1feeb506c446f43a08efc779d7442a31f76a

Contents?: true

Size: 462 Bytes

Versions: 15

Compression:

Stored size: 462 Bytes

Contents

require 'spec_helper'

require 'mspire/mass/common'

describe Mspire::Mass::Common do
  it 'provides string and symbol access to common mass spec masses' do
    mono = Mspire::Mass::Common::MONO

    mono['OH'].should be_within(0.0000001).of( 17.002739651629998 )
    mono[:OH].should == mono['OH']
    Mspire::Mass::Common[:OH].should == mono[:OH]

    avg = Mspire::Mass::Common::AVG
    avg['OH'].should == 17.00734
    avg[:OH].should == avg['OH']
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

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