46 lines
376 B
Plaintext
46 lines
376 B
Plaintext
let! a = 0
|
|
let b = 12
|
|
|
|
if true
|
|
a = 1
|
|
let b = 34
|
|
assert 34 == b
|
|
end
|
|
|
|
assert 1 == a
|
|
assert 12 == b
|
|
|
|
|
|
if false
|
|
a = 2
|
|
let b = 76
|
|
assert 76 == b
|
|
end
|
|
|
|
assert 1 == a
|
|
assert 12 == b
|
|
|
|
let! c = 0
|
|
|
|
if true
|
|
c = 1
|
|
else
|
|
c = 2
|
|
end
|
|
|
|
assert 1 == c
|
|
|
|
if false
|
|
c = 3
|
|
else
|
|
c = 4
|
|
end
|
|
|
|
assert 4 == c
|
|
|
|
let d = if true 1 else 2 end
|
|
assert 1 == d
|
|
|
|
let e = if false 1 else 2 end
|
|
assert 2 == e
|