assert ( got expect -- * ) - Factor Documentation

assert ( got expect -- * )
Assertions



Vocabulary
kernel

Inputs
got the obtained value
expect the expected value


Outputs
None

Word description
Throws an assert error.

Error description
Thrown when a unit test or other assertion fails.

Definition
IN: kernel

ERROR: assert got expect ;


Methods
USING: kernel summary ;

M: assert summary drop "Assertion failed" ;

AltStyle によって変換されたページ (->オリジナル) /