powered by
Repeatedly test properties of a function
repeat_test(property, tests = getOption("quickcheck.tests", 100L))
A testthat expectation object.
testthat
A function with no parameters which includes an expectation.
The number of tests to run.
repeat_test( property = function() { num <- stats::runif(1, min = 0, max = 10) testthat::expect_true(num >= 0 && num <= 10) } )
Run the code above in your browser using DataLab