forked from tidymodels/tidypredict
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds tests and fixes interval fit for dfs
- Loading branch information
1 parent
386f85e
commit 7742d0f
Showing
3 changed files
with
31 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
context("test-tester") | ||
|
||
test_that("Tester returns warning", { | ||
t <- tidypredict_test( | ||
lm(mpg ~ wt, offset = am, data = mtcars), | ||
threshold = 0) | ||
expect_true(t$alert) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters