assert ( got expect -- * )
Assertions
Next:assert= ( a b -- )


Vocabulary
kernel

Inputs and outputs
gotthe obtained value
expectthe 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" ;