Closed sppalkia closed 5 years ago
Adds an assert operator. The assert expression evaluates to true if the assertion condition is true, and terminates the program with an AssertionError otherwise.
assert
true
AssertionError
Example Usage:
|v: i32| assert(v == 0)
Looks great!
Thanks for looking at it!
Adds an
assert
operator. The assert expression evaluates totrue
if the assertion condition istrue
, and terminates the program with anAssertionError
otherwise.Example Usage: