Initializing without testing

Component Testing for C

It is sometimes difficult to predict the expected result for a variable; such as if a variable holds the current date or time. In this case, you can avoid specifying an expected output.


The following script show an example of an omitted test:


 FAMILY nominal


 VAR a, init in {1,2,3}, ev = init

 VAR b, init = 3, ev = init

 VAR c, init = 0, ev ==

 #c = add(a,b);




Related Topics

Testing variablesTesting intervalsTesting tolerancesTesting expressionsDeclaring parametersTesting arraysTesting structured variables