Learn R Programming

testex (version 0.2.1)

wrap_expect_no_error: 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)

Value

A testthat::test_that() call

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