Description Usage Arguments Details Value
Tests a function with many automatically generated inputs, checking that stated postconditions hold.
1 2 | quickcheck(fn, postconditions = NULL, verbose = TRUE, testthat = TRUE,
frame = NULL)
|
fn |
function. A function to randomly check postconditions for. |
postconditions |
list. Optional postconditions to quickcheck for. |
verbose |
logical. Whether or not to announce the success. |
testthat |
logical. Whether or not to run testthat. |
frame |
list. A custom testing_frame to use, if necessary. |
If given a function of class validated_function
, the pre- and post-conditions can
be automatically inferred by the definition of the function. The test objects used to
test the function will be screened ahead of time to ensure they meet the preconditions.
either TRUE if the function passed the quickcheck or FALSE if it didn't.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.