Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
import * as masx200LeetcodeTest from "https://deno.land/x/masx200_leetcode_test@8.3.0/deps.ts";

Functions

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

Make an assertion that actual and expected are almost equal numbers through a given tolerance. It can be used to take into account IEEE-754 double-precision floating-point representation limitations. If the values are not almost equal then throw.

Make an assertion that actual and expected are equal, deeply. If not deeply equal, then throw.

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

Make an assertion that actual and expected are strictly equal. If not then throw.

Yields r length Arrays from the input iterable. Order of selection does not matter and elements are chosen without replacement.

Deep equality comparison used in assertions

Take a set of command line arguments, optionally with a set of options, and return an object representing the flags found in the passed arguments.

Walks the file tree rooted at root, yielding each file or directory in the tree filtered according to the given options. The files are walked in lexical order, which makes the output deterministic but means that for very large directories walk() can be inefficient.