tests/testthat/test_growth.R

context("Annual growth calculations")

test_that("growth_summary output as expected", {
  expect_equal(growth_summ_expt(), growth_summ_test(fake_growth()))
})

test_that("detailed_growth output as expected", {
  expect_equal(det_growth_expt(), det_growth_test(fake_growth()))
})
sgraham9319/ForestPlotR documentation built on April 15, 2022, 4:01 p.m.