Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
assert ( got expect -- * )
Assertions
Next:
assert= ( a b -- )
Vocabulary
kernel
Inputs and outputs
got
the obtained value
expect
the expected value
Word description
Throws an
assert
error.
Error description
Thrown when a unit test or other assertion fails.
Definition
IN:
kernel
TUPLE:
assert
{
got
read-only
}
{
expect
read-only
}
;
IN:
kernel
:
assert
( got expect -- * )
\
assert
boa
throw
;
Methods
USING:
kernel
summary
;
M:
assert
summary
drop
"Assertion failed"
;