assertEqual
Validates that the given expected
value is equal to actual
. An optional custom failureMessage
can be given for displaying should the validation fails.
assertEqual(expected, actual)
# Or
assertEqual(expected, actual, failureMessage)
#
Parametersexpected
: The expected valueactual
: The actual valuefailureMessage
: An optionalstring
message to show when validation fails
#
Returns- No value
#
ExampleassertEqual(10, 5 * 2)