Skip to main content

assertNotEqual

Validates that the given unexpected value is not equal to actual. An optional custom failureMessage can be given for displaying should the validation fails.

assertNotEqual(unexpected, actual)
# Or
assertNotEqual(unexpected, actual, failureMessage)

Parameters#

  • unexpected: The unexpected value
  • actual: The actual value
  • failureMessage: An optional string message to show when validation fails

Returns#

  • No value

Example#

assertNotEqual(11, 5 * 2)