Make an assertion that actual not match RegExp expected. If match then throw.
actual
expected
The actual value to match.
The expected value to not match.
Optional
The optional message to display if the assertion fails.
import { assertNotMatch } from "@std/assert";assertNotMatch("Denosaurus", /Raptor/); // Doesn't throwassertNotMatch("Raptor", /Raptor/); // Throws Copy
import { assertNotMatch } from "@std/assert";assertNotMatch("Denosaurus", /Raptor/); // Doesn't throwassertNotMatch("Raptor", /Raptor/); // Throws
Make an assertion that
actualnot match RegExpexpected. If match then throw.