Nothing
testthat::test_that("GenericModelFit: initialize function works", {
instances <- data.frame(c(1, 2), c(2, 2))
colnames(instances) <- c("C1", "Class")
testthat::expect_is(GenericModelFit$new(), "GenericModelFit")
})
testthat::test_that("GenericModelFit: createFormula function works", {
instances <- data.frame(c(1, 2), c(2, 2))
colnames(instances) <- c("C1", "Class")
testthat::expect_error(GenericModelFit$new()$createFormula(instances = instances,
class.name = "Class"),
"[GenericModelFit][FATAL] Class is abstract. Method should be defined in inherited class. Aborting...",
fixed = TRUE)
})
testthat::test_that("GenericModelFit: createRecipe function works", {
instances <- data.frame(c(1, 2), c(2, 2))
colnames(instances) <- c("C1", "Class")
testthat::expect_error(GenericModelFit$new()$createRecipe(instances = instances,
class.name = "Class"),
"[GenericModelFit][FATAL] Class is abstract. Method should be defined in inherited class. Aborting...",
fixed = TRUE)
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.