tests/testthat/test_prediction.PredictionOutput.R

testthat::test_that("PredictionOutput: initialize function works", {

  testthat::expect_is(PredictionOutput$new(predictions = NULL,
                                           type = NULL,
                                           target = NULL),
                      "PredictionOutput")
})

testthat::test_that("PredictionOutput: getPredictions function works", {

  testthat::expect_null(PredictionOutput$new(predictions = NULL,
                                             type = NULL,
                                             target = NULL)$getPredictions())
})

testthat::test_that("PredictionOutput: getType function works", {

  testthat::expect_null(PredictionOutput$new(predictions = NULL,
                                             type = NULL,
                                             target = NULL)$getType())
})

testthat::test_that("PredictionOutput: getTarget function works", {

  testthat::expect_null(PredictionOutput$new(predictions = NULL,
                                             type = NULL,
                                             target = NULL)$getTarget())
})

Try the D2MCS package in your browser

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

D2MCS documentation built on Aug. 23, 2022, 5:07 p.m.