tests/test_utilities_ms2.R

library(masstrixR)
library(tidyverse)
library(MSnbase)

context("MS2 utility functions")

## tests for exact mass to ion mass --------------------------------------------
test_that("Utility functions for MS2 level are correct", {

  # check that spectra are of correct length
  expect_equal(length(ms2Spectra), 10361)

  # check for correct filtering
  expect_equal(length(ms2Spectra_filtered), 166)

})
michaelwitting/masstrixR documentation built on Nov. 8, 2019, 8:12 p.m.