Skip to content

Commit

Permalink
Test case for issue #25
Browse files Browse the repository at this point in the history
  • Loading branch information
xrobin committed Apr 27, 2018
1 parent cbd356b commit 41869d8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/testthat/test-ci.auc.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,13 @@ test_that("ci.auc works with a formula", {
test_that("ci.auc works with a response, predictor", {
expect_equal(as.numeric(ci.auc(aSAH$outcome, aSAH$ndka)), expected.ci.auc)
})


test_that("ci.auc works with a direction = >", {
expect_equal(as.numeric(ci.auc(aSAH$outcome, -aSAH$ndka)), expected.ci.auc)
})


test_that("ci.auc works with a direction = > and percent", {
expect_equal(as.numeric(ci.auc(aSAH$outcome, -aSAH$ndka, percent = TRUE)), expected.ci.auc * 100)
})

0 comments on commit 41869d8

Please sign in to comment.