Skip to main content
Version: 0.11

test

The test module is used for writing tremor unit tests.

Functions

assert(name, expected, got)

Runs an assertion for a test, ensures that expected and got are the same. If not errors.

WARNING: Do not run assertions in production code!

assert("one equals one", 1, 1) == true; # suces
assert("one equals one", 1, 2); # errors

Returns an bool.

suite()

The suite function is an entrypoint into tremor's integrated unit testing framework

test()

The test function is an entrypoint into tremor's integrated unit testing framework