Debian Codegraph @

tests/testthat/test-auc.R

raw
1 skip_on_cran()
2
3 skip_if_not_installed("modeltests")
4 library(modeltests)
5
6 skip_if_not_installed("AUC")
7
8 test_that("AUC::roc tidier arguments", {
9 check_arguments(tidy.roc)
10 })
11
12 test_that("tidy.roc", {
13 data(churn, package = "AUC")
14 r <- AUC::roc(churn$predictions, churn$labels)
15
16 td <- tidy(r)
17 check_tidy_output(td)
18 check_dims(td, expected_cols = 3)
19 })