function assertFalse
assertFalse(expr: unknown,msg?): asserts expr is FalsyDeprecated
(will be removed after 1.0.0) Import from https://deno.land/std/assert/assert_false.ts instead.
Make an assertion, error will be thrown if expr have truthy value.
Examples
Example 1
Example 1
import { assertFalse } from "@std/testing/asserts"; assertFalse(false); // Doesn't throw assertFalse(true); // Throws
Parameters
expr: unknownoptional
msgReturn Type
asserts expr is Falsy