getTests: Legacy internal test function (getTests)

View source: R/RtestingHelpers.R

getTestsR Documentation

Legacy internal test function (getTests)

Description

This function takes a pair of reults/expectation and performs a comparison.

Usage

getTests(prefixes = list(c("rTest", "rExp"), c("T", "E")), which = -2)

Arguments

prefixes

variable name prefixes for detecting test computations and expectations

which

which 'sys.frame' to search

Details

Call as argument to TestCompareDeparsedList(getTests()), otherwise which argument has to be modified; e.g.: separate line before: which = -1

Value

a list with elements 'tests' and 'expectation' with character strings of the corresponding test/expectation pairs


sboehringer/testme documentation built on Jan. 17, 2024, 4:58 p.m.