expect_success {testthat}R Documentation

Tools for testing expectations

Description

Use these expectations to test other expectations.

Usage

expect_success(expr)

expect_failure(expr, message = NULL, ...)

Arguments

expr

Expression that evaluates a single expectation.

message

Check that the failure message matches this regexp.

...

Other arguments passed on to expect_match.


[Package testthat version 1.0.2 Index]