expect_success: Tools for testing expectations

Description Usage Arguments

View source: R/expect-self-test.R

Description

Use these expectations to test other expectations. Use show_failure() in examples to print the failure message without throwing an error.

Usage

1
2
3
4
5

Arguments

expr

Expression that evaluates a single expectation.

message

Check that the failure message matches this regexp.

...

Other arguments passed on to expect_match().


r-lib/testthat documentation built on Sept. 25, 2021, 3:02 p.m.