tests/testthat/test-sfcr_random.R

test_that("Test that `sfcr_random()` are only evaluated inside `sfcr_set()`", {
  expect_output(sfcr_random("rnorm", mean=0, sd=1), "This function only returns an output when supplied inside `sfcr_set\\(\\)`")
})

Try the sfcr package in your browser

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

sfcr documentation built on Oct. 11, 2021, 9:09 a.m.