aboutsummaryrefslogtreecommitdiff
path: root/tests/testthat
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2021-02-06 09:46:53 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2021-02-06 09:46:53 +0100
commit2ee20b257e34210e2d1f044431f3bfe059c9c5e7 (patch)
tree53ecb4e0307362ebf848fac4a50c9adf90bf3afc /tests/testthat
parent5c2b184748abd5002e79d7e86c2764613f96d97e (diff)
Increase test tolerance for parameter comparisonsv1.0.1
Platform dependence also revealed after upgrade to bullseye
Diffstat (limited to 'tests/testthat')
-rw-r--r--tests/testthat/test_error_models.R8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/testthat/test_error_models.R b/tests/testthat/test_error_models.R
index c11f6712..fee29d2c 100644
--- a/tests/testthat/test_error_models.R
+++ b/tests/testthat/test_error_models.R
@@ -33,22 +33,22 @@ test_that("The different error model fitting methods work for parent fits", {
f_9_threestep <- mkinfit("SFO", test_9,
error_model = "tc", error_model_algorithm = "threestep", quiet = TRUE)
expect_equivalent(round(AIC(f_9_threestep), 2), 139.43)
- expect_equivalent(parms(f_9_threestep)[1:3], f_9_parms_const)
+ expect_equivalent(parms(f_9_threestep)[1:3], f_9_parms_const, tolerance = 1e-5)
f_9_fourstep <- mkinfit("SFO", test_9,
error_model = "tc", error_model_algorithm = "fourstep", quiet = TRUE)
expect_equivalent(round(AIC(f_9_fourstep), 2), 139.43)
- expect_equivalent(parms(f_9_fourstep)[1:3], f_9_parms_const)
+ expect_equivalent(parms(f_9_fourstep)[1:3], f_9_parms_const, tolerance = 1e-5)
f_9_IRLS <- mkinfit("SFO", test_9,
error_model = "tc", error_model_algorithm = "IRLS", quiet = TRUE)
expect_equivalent(round(AIC(f_9_IRLS), 2), 139.43)
- expect_equivalent(parms(f_9_IRLS)[1:3], f_9_parms_const)
+ expect_equivalent(parms(f_9_IRLS)[1:3], f_9_parms_const, tolerance = 1e-5)
f_9_d_3 <- mkinfit("SFO", test_9,
error_model = "tc", error_model_algorithm = "d_3", quiet = TRUE)
expect_equivalent(round(AIC(f_9_d_3), 2), 134.94)
- expect_equivalent(parms(f_9_d_3), f_9_parms_tc_direct)
+ expect_equivalent(parms(f_9_d_3), f_9_parms_tc_direct, tolerance = 1e-5)
})
test_that("The default error model algorithm finds the best known AIC values for parent fits", {

Contact - Imprint