tests/testthat/test-corrstoich.R

test_that("Correct stoichiometry gives correct properties.", {
  expect_equal(corrstoich(intro_comm)$prop$ID, intro_comm$prop$ID)
  expect_equal(dim(corrstoich(intro_comm)$imat), dim(intro_comm$imat))
  expect_type(corrstoich(intro_comm), "list")
  expect_type(corrstoich(intro_comm)$imat, "double")
  expect_s3_class(corrstoich(intro_comm)$prop, "data.frame")
})

Try the soilfoodwebs package in your browser

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

soilfoodwebs documentation built on May 31, 2023, 5:46 p.m.