tests/testthat/test-prepModelForOutput.R

context("prepModelForOutput testing")

test_that("prepModelForOutput works", {
  expect_equivalent(
    prepModelForOutput("name", 0),
    list(Name = "name", Object = list(0))
  )
})

test_that("prepModelForOutput reject invalid type for name", {
  expect_error(prepModelForOutput(5, 0))
})
alteryx/AlteryxPredictive documentation built on May 12, 2019, 1:37 a.m.