tests/testthat/test_01_basic.R

context("Create basic FFTrees objects")

test_that("Can create an FFTrees object", {

  object <- FFTrees(diagnosis ~ .,
                    data = heartdisease,
                    quiet = TRUE
  )

  expect_s3_class(object = object, class = "FFTrees")

})


test_that("Can create an FFTrees object with only one cue", {

  object <- FFTrees(diagnosis ~ age,
                    data = heartdisease,
                    quiet = TRUE)

  expect_s3_class(object = object, class = "FFTrees")

})

# eof.

Try the FFTrees package in your browser

Any scripts or data that you put into this service are public.

FFTrees documentation built on June 7, 2023, 5:56 p.m.