diff options
Diffstat (limited to 'tests/testthat/test_nlme.R')
-rw-r--r-- | tests/testthat/test_nlme.R | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/testthat/test_nlme.R b/tests/testthat/test_nlme.R index d272af38..e5e19c60 100644 --- a/tests/testthat/test_nlme.R +++ b/tests/testthat/test_nlme.R @@ -88,6 +88,9 @@ test_that("nlme_function works correctly", { expect_silent(tmp <- update(m_nlme_mkin)) expect_silent(tmp <- update(m_nlme_mmkin)) + + geomean_dt50_mmkin <- exp(mean(log((sapply(f, function(x) endpoints(x)$distimes["parent", "DT50"]))))) + expect_equal(round(endpoints(m_nlme_mmkin)$distimes["parent", "DT50"]), round(geomean_dt50_mmkin)) }) test_that("nlme_function works correctly in other cases", { |