wrap_expect_no_error {testex}R Documentation

Wraps an example expression in a testthat expectation to not error

Description

Wraps an example expression in a testthat expectation to not error

Usage

wrap_expect_no_error(expr, value)

Arguments

expr

An expression to wrap in a expect_no_error() expectation. Uses testthats version if recent enough version is available, or provides a fallback otherwise.

value

A symbol to use to store the result of expr

Value

A testthat::test_that() call


[Package testex version 0.2.0 Index]