diff options
author | Johannes Ranke <jranke@uni-bremen.de> | 2022-11-16 13:50:54 +0100 |
---|---|---|
committer | Johannes Ranke <jranke@uni-bremen.de> | 2022-11-16 13:52:08 +0100 |
commit | 5889cd78376e244f38e6c5acba8ffbc46e18f803 (patch) | |
tree | 4aea13911582407f28a2c44e06089c4ee491236f /tests | |
parent | 7094934f1061563725f6caa8723dc3e23c8ca677 (diff) |
Address platform dependence that surfaced on winbuilder
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testthat/test_multistart.R | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/testthat/test_multistart.R b/tests/testthat/test_multistart.R index c1a10d10..5803b62c 100644 --- a/tests/testthat/test_multistart.R +++ b/tests/testthat/test_multistart.R @@ -9,7 +9,12 @@ test_that("multistart works for saem.mmkin models", { best(saem_sfo_s_multi), test = TRUE ) - expect_true(anova_sfo[3, "Pr(>Chisq)"] > 0.5) + # On winbuilder, sfo_saem_1 gives an AIC of 1310.8, while we get 1311.7 + # locally on Linux and Windows. The other, well-determined fits + # both give 1309.7 + expect_equal(round(anova_sfo, 1)["sfo_saem_1_reduced", "AIC"], 1309.7) + expect_equal(round(anova_sfo, 1)["best(saem_sfo_s_multi)", "AIC"], 1309.7) + expect_true(anova_sfo[3, "Pr(>Chisq)"] > 0.2) # Local: 1, CRAN: 0.4 skip_on_cran() # Save CRAN time set.seed(123456) |