dput_expect_equal: dput a testthat test

Description Usage Arguments Value Examples

View source: R/dput_expect_that.r

Description

Generate an R expression containing a testthat expectation for the given expression and its result. This is useful when you know that a certain output is correct, and wish to generate a test case to reflect this.

Usage

1

Arguments

...

expressions

Value

character vector with each element containing an R expression with expect_equal test case corresponding to the evaluated input expressions.

Examples

1
dput_expect_equal("a" %nin% c("b", "c", "d"))

jackwasey/jwutil documentation built on May 18, 2019, 7:58 a.m.