aboutsummaryrefslogtreecommitdiff
path: root/tests/testthat/test_residuals.R
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2020-04-09 10:35:59 +0200
committerJohannes Ranke <jranke@uni-bremen.de>2020-04-09 10:35:59 +0200
commite4e54169ab3961c354f580bc489d150299038367 (patch)
tree293790e7db06d0d808ceabc69ee4711294d928b6 /tests/testthat/test_residuals.R
parent23461dddcc6a1858f1c9c9052512f22485d08842 (diff)
Improve test coverage and fix nlme test
No idea why I had to do more assignments all of a sudden in test_nlme.R
Diffstat (limited to 'tests/testthat/test_residuals.R')
-rw-r--r--tests/testthat/test_residuals.R9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/testthat/test_residuals.R b/tests/testthat/test_residuals.R
index 35a143f6..e6e54dd5 100644
--- a/tests/testthat/test_residuals.R
+++ b/tests/testthat/test_residuals.R
@@ -7,4 +7,13 @@ test_that("Residuals are correctly returned", {
expect_equivalent(
residuals(f, standardized = TRUE)[1:3],
c(-0.4171812, 1.4584875, -1.0472450), tolerance = 0.0001)
+
+ expect_equivalent(
+ residuals(fit_obs_1, standardized = TRUE)[1:3],
+ c(-0.21771169, -0.33576060, 2.02836138))
+
+ expect_equivalent(
+ residuals(fit_tc_1, standardized = TRUE)[1:3],
+ c(-0.2474499, -0.3794267, 2.2749216),
+ tolerance = 1e-7)
})

Contact - Imprint