tests/testthat/test-07-biophysmodel_LimpetBH.R

context("biophysmodel_LimpetBH")


test_that("Tb_limpetBH function works as expected", {
  expect_equal(Tb_limpetBH(T_a = 25, T_r = 30, l = 0.0176, h = 0.0122, S = 1300, u = 1, s_aspect = 90, s_slope = 60, c = 1), 30.6807, tol = 1e-4)
  expect_equal(Tb_limpetBH(T_a = 25, T_r = 30, l = 0.03, h = 0.0122, S = 1300, u = 1, s_aspect = 90, s_slope = 60, c = 1), 32.9128, tol = 1e-4)
  expect_equal(Tb_limpetBH(T_a = 25, T_r = 30, l = 0.04, h = 0.0122, S = 1300, u = 1, s_aspect = 90, s_slope = 60, c = 1), 32.53228, 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.