Make an assertion that actual and expected are not equal, deeply. If not then throw.
actual
expected
Type parameter can be specified to ensure values under comparison have the same type.
The type of the values to compare.
The actual value to compare.
The expected value to compare.
Optional
The optional message to display if the assertion fails.
import { assertNotEquals } from "@std/assert";assertNotEquals(1, 2); // Doesn't throwassertNotEquals(1, 1); // Throws Copy
import { assertNotEquals } from "@std/assert";assertNotEquals(1, 2); // Doesn't throwassertNotEquals(1, 1); // Throws
Make an assertion that
actualandexpectedare not equal, deeply. If not then throw.Type parameter can be specified to ensure values under comparison have the same type.