expect {testthat} | R Documentation |
expect_
functionsCall this function when writing your own expectations. See
vignette("custom-expectation")
for details.
expect(ok, failure_message, info = NULL, srcref = NULL)
ok |
|
failure_message |
Message to show if the expectation failed. |
info |
Character vector continuing additional information. Included for backward compatibility only and new expectations should not use it. |
srcref |
Location of the failure. Should only needed to be explicitly supplied when you need to forward a srcref captured elsewhere. |
An expectation object. Signals the expectation condition
with a continue_test
restart.