Assertions

var num = pick(0..100);
assert_eq(num, 42);         # dies when "num" is not 42

Output:

assert_eq: 26 == 42 is false at assertions.sf line 2.

Last updated