sema-test 0.1.0

API reference · 8 exports

Source declarations and literal docstrings from this release. Package code was not executed.

test/assert-contains

(test/assert-contains haystack needle)
Assert that a list contains an element or a string contains a substring.

Source: package.sema:53

test/assert-equal

(test/assert-equal expected actual)
Assert that expected and actual are deeply equal.

Source: package.sema:17

test/assert-false

(test/assert-false value)
Assert that value is falsy.

Source: package.sema:29

test/assert-near

(test/assert-near expected actual tolerance)
Assert that expected and actual differ by at most tolerance.

Source: package.sema:45

test/assert-throws

(test/assert-throws thunk)
Assert that calling thunk raises an error.

Source: package.sema:35

test/assert-true

(test/assert-true value)
Assert that value is truthy.

Source: package.sema:23

test/run

(test/run . test-fns)
Run test functions, print a report, return {:passed :failed :total}.

Source: package.sema:96

test/run!

(test/run! . test-fns)
Run test functions and exit with code 1 if any fail.

Source: package.sema:110