isEqualTo
Short summary
This assertion method checks if the current string stringToCheck is equal to expected
Attention: All strings are handled as null-terminated byte streams
Parameters
| Name | Type | Comment | Kind |
|---|---|---|---|
| stringToCheck | POINTER TO BYTE | current string to check | input |
| expected | POINTER TO BYTE | stringToCheck must be equal to expected | input |
| ignoreCases | BOOL | TRUE means ignore cases; FALSE means that cases must be equal too | input |
| message | AssertMessage | message if the assertion is false | input |
| normalizeStrings | BOOL | normalize both strings for check | input |
Code
Declaration
METHOD isEqualTo
VAR_INPUT
(* current string to check *)
stringToCheck :POINTER TO BYTE;
(* ``stringToCheck`` must be equal to expected *)
expected :POINTER TO BYTE;
(* ``TRUE`` means ignore cases; ``FALSE`` means that cases must be equal too *)
ignoreCases :BOOL;
(* message if the assertion is false *)
message :AssertMessage;
(*normalize both strings for check*)
normalizeStrings :BOOL := TRUE;
END_VAR