Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Oct 4, 2023
1 parent 393d574 commit 21c6211
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/testthat/test-binned_residuals.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/test-check_autocorrelation.R
Original file line number Diff line number Diff line change
@@ -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)
})

0 comments on commit 21c6211

Please sign in to comment.