Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Oct 4, 2023
1 parent 3f6c192 commit ee95065
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/testthat/test-binned_residuals.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,3 @@ test_that("binned_residuals, terms", {
tolerance = 1e-4
)
})

dput(round(result$ybar, 5))
6 changes: 6 additions & 0 deletions tests/testthat/test-check_autocorrelation.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
test_that("check_autocorrelation", {
data(mtcars)
m <- lm(mpg ~ wt + cyl + gear + disp, data = mtcars)
out <- check_autocorrelation(m)
expect_equal(out, 0.278, ignor_attr = TRUE, tolerance = 1e-3)
})

0 comments on commit ee95065

Please sign in to comment.