must-fail
Factor handbook » Developer tools » Unit testing

Prev:unit-test
Next:must-fail-with


Vocabulary
tools.test

Syntax
[ quot ] must-fail


Inputs
None

Outputs
None

Word description
Runs a quotation with an empty stack, expecting it to throw an error. If the quotation throws an error, this word returns normally. If the quotation does not throw an error, this word does raise an error.

Notes
This word is used to test boundary conditions and fail-fast behavior.

Definition