VAR, ARRAY and STR <variable> Parameter

Description

In conjunction with the VAR, ARRAY and STR keywords, the <variable> parameter for Ada is a conventional notation name for an Ada variable under test.

Associated Rules

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

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

Brackets or parentheses can be used to index array variables.

The variable must have been declared in Ada before it is used in the .ptu test script.

Example

VAR x, ...

VAR y(4), ...

VAR z.field, ...

VAR p.value, ...

ARRAY y(0..100), ...

ARRAY y, ...

STR z, ...

STR p.all, ...

 

Related Topics

VAR, ARRAY and STRVAR, ARRAY and STR <expected> ParameterVAR, ARRAY and STR <initialization> Parameter