testing module reference
testing module reference
Operators for testing.
index
- Throw an error if a condition is false.
- Throw an error if arguments aren't equal.
details
- Throw an error if a condition is false.
(assert check [msg])Check is any bool result. When it is
false, this op throws an error.msgis a str= value that is used as the error message. By default, the message contains the failing check expression. - Throw an error if arguments aren't equal.
(expect= expected actual [actual…])Check if
expectedandactualare equal. If not, throws an error.