summaryrefslogtreecommitdiff
path: root/examples/assert.fy
blob: d9871f59c3169620c069413dce308f5e08abdf17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#*
 * Examples of how to use asserts
 *#

# The built in function assert checks if a condition evaluates to true
# and aborts the interpreter if it evaluates to false.

# Evaluates to true
assert 0 == 0
assert 6 == 2 * 3

# Evaluates to false
# assert 1 == 0