#test_that("Checking same output for seed 42", {
# set.seed(42)
# test <- sim_test(10, 15, 5, 0.5, 0.05, TRUE)
# expect_equal(test, data_for_testsim)
#})
test_that("Output is a list of 4", {
set.seed(42)
test <- sim_test(10, 15, 5, 0.5, 0.05, TRUE)
expect_equal(class(test), "list")
expect_equal(length(test), 5)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.