Testing a Record with Another Record

Component Testing for Ada

As with arrays, you can initialize and test a record using another record of the same type. The following example illustrates this form:

STR l.all, init == , ev = l1.all

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 Records | Testing a Record with Ada Expressions | Testing Records with Discriminants | Testing Tagged Records | No Test