Standard Library

std.assert

Assertion helpers for tests and runtime checks.

Exported functions

pub def ok(value)

Asserts that a value is truthy.

pub def eq(left, right)

Asserts that two values are equal.

pub def ne(left, right)

Asserts that two values are not equal.

pub def snapshot(name, value, path)

Asserts that a value matches a saved snapshot.