Assert_LReal_NotEqual (FUN) ¶ FUNCTION Assert_LReal_NotEqual : BOOL Assertion function to check unequality of two values of type LREAL The assertion passes for (referenceValue - precision) > actualValue AND (referenceValue + precision) > actualValue InOut: Scope Name Type Initial Comment Return Assert_LReal_NotEqual BOOL TRUE if the assertion passes succesfully, FALSE otherwise Input context IBaseIecUnitTest The instance of the test function block calling this function. This instance can be provided by using THIS^ . referenceValue LREAL The reference value actualValue LREAL The value to check precision LREAL 0.0 A value to specify an allowed deviation. Default is 0.0 wsErrorMsg WSTRING(Constants.WSTRING_LENGTH) “” A custom error message, that is added to the error message of the assertion itself. If this parameter is used, it is recommended to adapt the value of the library parameter Constants.WSTRING_LENGTH .
Assert_LReal_LessEqual (FUN) ¶ FUNCTION Assert_LReal_LessEqual : BOOL Assertion function to check that a value of LREAL is less or equal the given threshold InOut: Scope Name Type Initial Comment Return Assert_LReal_LessEqual BOOL TRUE if the assertion passes succesfully, FALSE otherwise Input context IBaseIecUnitTest The instance of the test function block calling this function. This instance can be provided by using THIS^ . referenceValue LREAL The value indicating the threshold actualValue LREAL The value to check wsErrorMsg WSTRING(Constants.WSTRING_LENGTH) “” A custom error message, that is added to the error message of the assertion itself. If this parameter is used, it is recommended to adapt the value of the library parameter Constants.WSTRING_LENGTH .
REAL ¶ Assert_Real_Equal (Function) Assert_Real_Greater (Function) Assert_Real_GreaterEqual (Function) Assert_Real_Less (Function) Assert_Real_LessEqual (Function) Assert_Real_NotEqual (Function)
Assert_Real_Equal (FUN) ¶ FUNCTION Assert_Real_Equal : BOOL Assertion function to check equality of two values of type REAL The assertion passes for (referenceValue - precision) <= actualValue AND (referenceValue + precision) >= actualValue InOut: Scope Name Type Initial Comment Return Assert_Real_Equal BOOL TRUE if the assertion passes succesfully, FALSE otherwise Input context IBaseIecUnitTest The instance of the test function block calling this function. This instance can be provided by using THIS^ . referenceValue REAL The expected value actualValue REAL The value to check precision REAL 0.0 A value to specify an allowed deviation. Default is 0.0 wsErrorMsg WSTRING(Constants.WSTRING_LENGTH) “” A custom error message, that is added to the error message of the assertion itself. If this parameter is used, it is recommended to adapt the value of the library parameter Constants.WSTRING_LENGTH .
Assert_DWord_NotEqual (FUN) ¶ FUNCTION Assert_DWord_NotEqual : BOOL Assertion function to check unequality of two values of type DWORD InOut: Scope Name Type Initial Comment Return Assert_DWord_NotEqual BOOL TRUE if the assertion passes succesfully, FALSE otherwise Input context IBaseIecUnitTest The instance of the test function block calling this function. This instance can be provided by using THIS^ . referenceValue DWORD The reference value actualValue DWORD The value to check wsErrorMsg WSTRING(Constants.WSTRING_LENGTH) “” A custom error message, that is added to the error message of the assertion itself. If this parameter is used, it is recommended to adapt the value of the library parameter Constants.WSTRING_LENGTH .
Assert_DWord_LessEqual (FUN) ¶ FUNCTION Assert_DWord_LessEqual : BOOL Assertion function to check that a value of DWORD is less or equal the given threshold InOut: Scope Name Type Initial Comment Return Assert_DWord_LessEqual BOOL TRUE if the assertion passes succesfully, FALSE otherwise Input context IBaseIecUnitTest The instance of the test function block calling this function. This instance can be provided by using THIS^ . referenceValue DWORD The value indicating the threshold actualValue DWORD The value to check wsErrorMsg WSTRING(Constants.WSTRING_LENGTH) “” A custom error message, that is added to the error message of the assertion itself. If this parameter is used, it is recommended to adapt the value of the library parameter Constants.WSTRING_LENGTH .
Assert_Int_Equal (FUN) ¶ FUNCTION Assert_Int_Equal : BOOL Assertion function to check equality of two values of type INT InOut: Scope Name Type Initial Comment Return Assert_Int_Equal BOOL TRUE if the assertion passes succesfully, FALSE otherwise Input context IBaseIecUnitTest The instance of the test function block calling this function. This instance can be provided by using THIS^ . referenceValue INT The expected value actualValue INT The value to check wsErrorMsg WSTRING(Constants.WSTRING_LENGTH) “” A custom error message, that is added to the error message of the assertion itself. If this parameter is used, it is recommended to adapt the value of the library parameter Constants.WSTRING_LENGTH .
INT ¶ Assert_Int_Equal (Function) Assert_Int_Greater (Function) Assert_Int_GreaterEqual (Function) Assert_Int_Less (Function) Assert_Int_LessEqual (Function) Assert_Int_NotEqual (Function)
Assert_Int_Greater (FUN) ¶ FUNCTION Assert_Int_Greater : BOOL Assertion function to check that a value of INT is greater then the given threshold InOut: Scope Name Type Initial Comment Return Assert_Int_Greater BOOL TRUE if the assertion passes succesfully, FALSE otherwise Input context IBaseIecUnitTest The instance of the test function block calling this function. This instance can be provided by using THIS^ . referenceValue INT The value indicating the threshold actualValue INT The value to check wsErrorMsg WSTRING(Constants.WSTRING_LENGTH) “” A custom error message, that is added to the error message of the assertion itself. If this parameter is used, it is recommended to adapt the value of the library parameter Constants.WSTRING_LENGTH .
Assert_Int_GreaterEqual (FUN) ¶ FUNCTION Assert_Int_GreaterEqual : BOOL Assertion function to check that a value of INT is greater or equal the given threshold InOut: Scope Name Type Initial Comment Return Assert_Int_GreaterEqual BOOL TRUE if the assertion passes succesfully, FALSE otherwise Input context IBaseIecUnitTest The instance of the test function block calling this function. This instance can be provided by using THIS^ . referenceValue INT The value indicating the threshold actualValue INT The value to check wsErrorMsg WSTRING(Constants.WSTRING_LENGTH) “” A custom error message, that is added to the error message of the assertion itself. If this parameter is used, it is recommended to adapt the value of the library parameter Constants.WSTRING_LENGTH .