From 5889cd78376e244f38e6c5acba8ffbc46e18f803 Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Wed, 16 Nov 2022 13:50:54 +0100 Subject: Address platform dependence that surfaced on winbuilder --- tests/testthat/test_multistart.R | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests') 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) -- cgit v1.2.1