Skip to content

Commit

Permalink
DS-1526 add test
Browse files Browse the repository at this point in the history
  • Loading branch information
jakehoare committed Sep 21, 2017
1 parent aa09bb8 commit c7988d8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/testthat/test-CART.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ test_that("rpart Probabilities",
expect_equal(unname(flipData::Probabilities(z)[1, 4]), 0.2444444444444445)
})

z <- suppressWarnings(CART(fOverall ~ Fees + Interest + Phone + Branch + Online + ATM, data = bank, subset = bank$ID > 100))
test_that("dot in formula",
{
expect_error(CART(yesno ~ ., data = spam7), NA)
})

# Reading in the libraries so that their outputs do not pollute the test results.
library(mice)
Expand Down

0 comments on commit c7988d8

Please sign in to comment.