Learn R Programming

testthat (version 0.9.1)

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")

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
x
object to test for class membership