CreateAssertionErrorMessageNonEqualArrayBounds (FUN)¶
FUNCTION CreateAssertionErrorMessageNonEqualArrayBounds : WSTRING(Constants.WSTRING_LENGTH)
Helper function to create an error message for non-equal bounds of an array.
- InOut:
Scope
Name
Type
Comment
Return
CreateAssertionErrorMessageNonEqualArrayBoundsWSTRING(Constants.WSTRING_LENGTH)a
WSTRINGsimilar to “Assertion failed: <Lower/Upper> bounds differ in dimension <diDimension> (expected <diExpectedBound> but got <diActualBound>)”Input
diExpectedBoundDINTthe upper or lower bound of the reference array
diActualBoundDINTthe upper or lower bound of the actual array
xIsLowerBoundBOOLif set to
TRUEthe error message containsLower boundsotherwiseUpper boundsdiDimensionDINTthe dimension in which the bounds differ