Sha256: f3d5e8691ff175e9f6d73490ef314c34adbe9229508edbaf99d4f09867215874
Contents?: true
Size: 919 Bytes
Versions: 3
Compression:
Stored size: 919 Bytes
Contents
require File.join(File.dirname(__FILE__), '../../tap_test_helper.rb') require 'ms/in_silico/fragment' class FragmentTest < Test::Unit::TestCase include Ms::InSilico acts_as_tap_test # # process test # def test_process_returns_data_and_a_hash_of_headers data, headers = Fragment.new.process('TVQQEL') assert_equal %w{ 102.054954926291 132.101905118891 201.123368842491 261.144498215091 329.181946353891 389.203075726491 457.240523865291 517.261653237891 586.283116961491 616.330067154091 699.367180941891 717.377745628191 }, data.collect {|mass| mass.to_s } assert_equal 1, headers[:charge] assert_equal 'H', headers[:nterm] assert_equal 'HO', headers[:cterm] assert_in_delta 717.377745628191, headers[:parent_ion_mass], 0.000000000001 assert_equal ['y', 'b'], headers[:series] end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ms-in_silico-0.4.2 | test/ms/in_silico/fragment_test.rb |
ms-in_silico-0.4.1 | test/ms/in_silico/fragment_test.rb |
ms-in_silico-0.4.0 | test/ms/in_silico/fragment_test.rb |