tests/testthat/test-05-biophysmodel_Grasshopper.R

context("biophysmodel_Grasshopper")

test_that("Tb_grasshopper function works as expected", {
  expect_equal(Tb_grasshopper(T_a = 25, T_g = 25, u = 0.4, S = 400, K_t = 0.7, psi = 30, l = 0.02, Acondfact = 0.25, z = 0.001, abs = 0.7, r_g = 0.3), 25.03181, tol = 1e-4)
})

Try the TrenchR package in your browser

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

TrenchR documentation built on Sept. 14, 2023, 1:07 a.m.