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 RecordsTesting a Record with Ada ExpressionsTesting Records with DiscriminantsTesting Tagged RecordsNo Test