AreNotEqual

AreNotEqual

AreNotEqual A test that verifies two values are **not equal** using strict inequality (`!==`) or a custom comparer function that is expected to return `false`. This test passes when `actual !== not_expected`, or when the `comparer` returns `false`. Inherits from Assert. Example: ```js new AreNotEqual("Should be different", 42, value); new AreNotEqual("Custom inequality", a, b, (a, b) => deepCompare(a, b)); ```

Constructor

new AreNotEqual(testName, not_expected, actual, compareropt, thisArgopt)

Description:
  • Constructs a new inequality assertion.
Source:
Parameters:
Name Type Attributes Description
testName string Name of the test.
not_expected any | function Value the actual result must NOT match.
actual any | function Actual value or function returning it.
comparer function <optional>
Optional custom comparison function ((not_expected, actual) => boolean).
thisArg any <optional>
Optional context for invoking deferred or comparison functions.

Classes

AreNotEqual