Skip to main content
Module

x/collections/deps/std/testing/asserts.ts>assert

Collection data structures that are not standard built-in objects in JavaScript. This includes a vector (double-ended queue), binary heap (priority queue), binary search tree, and a red black tree.
Go to Latest
function assert
import { assert } from "https://deno.land/x/collections@v0.10.1/deps/std/testing/asserts.ts";

Make an assertion, error will be thrown if expr does not have truthy value.

Parameters

expr: unknown
optional
msg = [UNSUPPORTED]

Returns

asserts expr