./
assert.pro
topassert
Raises an error if the given condition is not met. Uses logical_predicate
to determine truth of condition: so zero or null values are false, anything
else is true. Be careful of conditions like:
assert, not file_test(filename)
Parameters
- condition in required type=boolean
condition to assert
- msg in optional type=string default=Assertion failed
message to throw if condition is not met
File attributes
Modification date: | Wed Apr 22 23:28:57 2009 |
Lines: | 21 |
Docformat: | rst rst |