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.

Example

The following script show an example of an omitted test:

 TEST 7

 FAMILY nominal

 ELEMENT

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

 VAR b, init = 3, ev = init

 VAR c, init = 0, ev ==

 #c = add(a,b);

 END ELEMENT

 END TEST

 

Related Topics

Testing variablesTesting intervalsTesting tolerancesTesting expressionsDeclaring parametersTesting arraysTesting structured variables