Skip to main content
Go to Latest
function assertNotEquals
import { assertNotEquals } from "";

Make an assertion that actual and expected are not equal, deeply. If not then throw.

Type parameter can be specified to ensure values under comparison have the same type.


Example 1

import { assertNotEquals } from "";

assertNotEquals(1, 2); // Doesn't throw
assertNotEquals(1, 1); // Throws


actual: T
expected: T
msg: string