expectation {testthat} | R Documentation |
Any expectation should return objects of this class - see the built in expectations for details.
expectation(passed, failure_msg, success_msg = "unknown", srcref = NULL) is.expectation(x)
passed |
a single logical value indicating whether the test passed
( |
failure_msg |
A text description of failure |
success_msg |
A text description of success |
srcref |
Source reference, if known |
x |
object to test for class membership |