tests/testthat/test-InterpretTP.R

testthat::test_that(
  desc = "InterpretTP returns expected result",
  code = {
    # simple calculations
    inp <- InterpretMSSpectrum::apci_spectrum
    out <- InterpretMSSpectrum::InterpretTP(fml = "C14H33NO4Si3", spec=inp, param="APCIpos", silent = TRUE)
    testthat::expect_true(is.list(out))
    inp <- InterpretMSSpectrum::esi_spectrum
    out <- InterpretMSSpectrum::InterpretTP(fml = "C14H33NO4Si3", spec=inp, param="ESIneg", silent = TRUE)
    testthat::expect_true(is.list(out))
    out <- InterpretMSSpectrum::InterpretTP(fml = "C14H33NO4Si3", spec=inp, param="ESIpos", silent = TRUE)
    testthat::expect_true(is.list(out))
  }
)

Try the InterpretMSSpectrum package in your browser

Any scripts or data that you put into this service are public.

InterpretMSSpectrum documentation built on May 29, 2024, 10:18 a.m.