Make an assertion that actual and expected are not strictly equal, using Object.is for equality comparison. If the values are strictly equal then throw.
actual
expected
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 { assertNotStrictEquals } from "@std/assert";assertNotStrictEquals(1, 1); // ThrowsassertNotStrictEquals(1, 2); // Doesn't throwassertNotStrictEquals(0, 0); // ThrowsassertNotStrictEquals(0, -0); // Doesn't throw Copy
import { assertNotStrictEquals } from "@std/assert";assertNotStrictEquals(1, 1); // ThrowsassertNotStrictEquals(1, 2); // Doesn't throwassertNotStrictEquals(0, 0); // ThrowsassertNotStrictEquals(0, -0); // Doesn't throw
Make an assertion that
actualandexpectedare not strictly equal, using Object.is for equality comparison. If the values are strictly equal then throw.