Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/TestCaseDefinition.R
Defines a test case
1 | TestCaseDefinition(params_l, expectedResult_, description_s_1)
|
params_l |
a list that holds the test case input values |
expectedResult_ |
test case expected result. This will be used to compare with function execution results |
description_s_1 |
a single string, test case description |
Test case definition takes sense only when intimately correlated with a function
An object that is an R environment
.
Fabien Gelineau <neonira@gmail.com>
Maintainer: Fabien Gelineau <neonira@gmail.com>
Refer to FunctionParameterTypeFactory
1 2 3 4 | ##---- typical case ----
tcd <- TestCaseDefinition(list(1:5), 15, 'sum of 5 first non nul integers')
tcd <- TestCaseDefinition(list(1:7, 3:5, sample(1:100, 19, FALSE)),
list(3:5), 'extract smallest length from input')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.