Handbook
Glossary
unit-test
Factor handbook
»
Developer tools
»
Unit testing
Next:
must-fail
Vocabulary
tools
.
test
Syntax
{ output } [ input ] unit-test
Inputs
None
Outputs
None
Word description
Runs a quotation with an empty stack, comparing the resulting stack with
output
. Elements are compared using
=
. Throws an error if the expected stack does not match the resulting stack.
Definition
USING:
tools.test.private
;
IN:
tools.test
SYNTAX:
unit-test
\
(unit-test)
parse-test
;