assert
Command
Syntax:
assert {that} condition {with [warning | error | exception | pause]}
If <condition> is of the form <expr1> <comparison> <expr2> where comparison is one of the comparison operators such as = , is, < , > , contains , etc. then SenseTalk will pass the values of expr1 and expr2 separately to the assert evaluator. Assert can then do the comparison itself, so it can report both of the expression values in the error message, giving a much more informative result in the event of a failure.
- Read more about Assert in the SenseTalk Reference manual
Examples
Simple
assert <condition>
assert <condition>, <message>
English-like
assert (that) <condition> ( (with) ( warning | error | exception | pause ) (message) <messageString> )
Related Terms
History
- Added in SenseTalk 1.72