tests/testthat/test-CountChemicalElements.R

testthat::test_that(
  desc = "CountChemicalElements returns expected result",
  code = {
    testthat::expect_equal(unname(CorMID::CountChemicalElements("CHC")), c(2,1))
  }
)

Try the CorMID package in your browser

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

CorMID documentation built on Aug. 10, 2023, 5:09 p.m.