Learn R Programming

testthat (version 0.11.0)

expectation: Expectation class.

Description

Any expectation should return objects of this class - see the built in expectations for details.

Usage

expectation(passed, failure_msg, success_msg = "unknown", srcref = NULL)

is.expectation(x)

Arguments

passed
a single logical value indicating whether the test passed (TRUE), failed (FALSE), or threw an error (NA)
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