tests/testthat/test-mz_iso_correct.R

prob_matrix <- mz_iso_quant("C2")$prob_matrix

test_that("errors work", {
  expect_error(mz_iso_correct(prob_matrix, c(10, 1)))
  expect_error(mz_iso_correct(prob_matrix, c(1:5)))
})
wmoldham/mzrtools documentation built on Oct. 26, 2020, 2:40 p.m.