namespace Test

Functions

f
Test.equals

Confirm that return value of previous test step is deeply, strictly equal to expected value.

f
Test.has

Confirm that object has key. Optionally, confirm predicates about the value of that key.

f
Test.includes

Confirm that string or array includes an expected value.

f
Test.is

Confirm that value returned by previous test step is of given type. Optionally, confirms other predicates about the value.

f
Test.suite

Test entrypoint. When test module is run (not imported), tests in the suite run, and a report is printed.

f
Test.the

Test case. Consists of name and zero or more test steps.

Type Aliases

f
T
Test.Categories

Define result categories.

f
T
Test.Category

Define result category.

T
Test.Frame

Test stack frame.

f
T
Test.Options

Parse test filters.

f
T
Test.Stack

Define test stack.

T
Test.State

Test category name.

f
T
Test.Step

Ensure test step is function.

T
v
Test.Testing

Test stack and context. Passed to eacgh step as second argument.