VAR, ARRAY and STR variable Parameter

VAR, ARRAY and STR <variable> Parameter

C Test Script Language

Description

In the current documentation, the Component Testing <variable> parameter for C is a conventional notation name for a C variable under test. The syntax of the <variable> parameter allows you to specify the upper and lower boundaries of the range of the test for each dimension of the array:

[ <lower> .. <upper> ]

where:

<lower> is lower boundary for acceptable values of <variable>

<upper> is the upper boundary for acceptable values of <variable>

Associated Rules

<variable> can be a simple variable (integer, floating-point number, character, pointer or character string), an element of an array or structure, part of an array, an entire array, or a complete structure.

If no test boundaries have been specified for a variable array, all array elements are tested. Similarly, if one of the fields of a variable structure is an array, all elements of this field are tested.

The variable must have been declared in advance.

Example

VAR x, ...

VAR y[4], ...

VAR z.field, ...

VAR p->value, ...

ARRAY y[0..100], ...

ARRAY y, ...

STR z, ...

STR *p, ...

Related Topics

VAR, ARRAY and STR | Initialization Expressions | Expected Value Expressions