dput_expect_equal {jwutil} | R Documentation |
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.
dput_expect_equal(...)
... |
expressions |
character vector with each element containing an R expression with
expect_equal
test case corresponding to the evaluated input
expressions.
dput_expect_equal("a" %nin% c("b", "c", "d"))