Skip to content

test

Utilities for writing and running test suites.

Types

TypeDescription
Skip Exception thrown to skip a test case.

Functions

skip msg?

Skip the current test with an optional message.

assert cond msg?

Assert that cond is truthy, throwing an error with optional msg on failure.

assert_not cond msg?

Assert that cond is falsy, throwing an error with optional msg on failure.

assert_eq left right msg?

Assert that left == right, throwing an error with optional msg on failure.

assert_ne left right msg?

Assert that left != right, throwing an error with optional msg on failure.