Testing structured variables with other structured variables

Component Testing for C

You can initialize and test a structured variable or record using another structured variable or record of the same type. The following example illustrates this form:

STR *l, init == , ev = l1

Each field of the structured variable will be initialized or tested using the associated fields of the variable used for initialization or testing.

Related Topics

Testing VariablesTesting a Structured VariableTesting a Structured Variable with C ExpressionsTesting a Structured Variable with Another Structured VariableC Unions | Omitting a Field's Initial and Test Values