diff --git a/tests/testthat/test-binned_residuals.R b/tests/testthat/test-binned_residuals.R index 62958b519..4aa69e0ec 100644 --- a/tests/testthat/test-binned_residuals.R +++ b/tests/testthat/test-binned_residuals.R @@ -30,7 +30,7 @@ test_that("binned_residuals, n_bins", { expect_equal( result$xbar, c( - 0.02373, 0.06301, 0.08441, 0.17907, 0.29225, 0.44073, 0.54951, + 0.02373, 0.06301, 0.08441, 0.17907, 0.29225, 0.44073, 0.54951, 0.69701, 0.9168, 0.99204 ), tolerance = 1e-4 diff --git a/tests/testthat/test-check_autocorrelation.R b/tests/testthat/test-check_autocorrelation.R index d33a97279..b389f3985 100644 --- a/tests/testthat/test-check_autocorrelation.R +++ b/tests/testthat/test-check_autocorrelation.R @@ -1,6 +1,7 @@ test_that("check_autocorrelation", { data(mtcars) m <- lm(mpg ~ wt + cyl + gear + disp, data = mtcars) + set.seed(123) out <- check_autocorrelation(m) - expect_equal(out, 0.278, ignor_attr = TRUE, tolerance = 1e-3) + expect_equal(as.vector(out), 0.316, ignor_attr = TRUE, tolerance = 1e-2) })