tests/testthat/test-checks.R

test_that("error thrown if incorrect adduct table specified", {
  expect_error(checkAdductTable(tibble()))
})

test_that("error thrown if incorrect adduct table specified", {
  expect_error(checkIsotopeTable(tibble()))
})

test_that("error thrown if incorrect adduct table specified", {
  expect_error(checkTransformationTable(tibble()))
})

test_that('error thrown if incorrect transformation specified',{
  expect_error(checkTransformation('incorrect'))
})
jasenfinch/mzAnnotation documentation built on Feb. 25, 2023, 1:27 a.m.