wrap_expect_no_error: Wraps an example expression in a 'testthat' expectation to...

View source: R/testthat.R

wrap_expect_no_errorR 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


testex documentation built on June 22, 2024, 11:14 a.m.