93 lines
709 B
Plaintext
93 lines
709 B
Plaintext
let! a = 0
|
|
|
|
if true
|
|
a = 7
|
|
end
|
|
|
|
assert 7 == a
|
|
|
|
if false
|
|
a = 9
|
|
end
|
|
|
|
assert 7 == a
|
|
|
|
if true
|
|
a = 0
|
|
else
|
|
a = 1
|
|
end
|
|
|
|
assert 0 == a
|
|
|
|
if false
|
|
a = 0
|
|
else
|
|
a = 1
|
|
end
|
|
|
|
assert 1 == a
|
|
|
|
if true
|
|
a = 1
|
|
else if true
|
|
a = 2
|
|
else if true
|
|
a = 3
|
|
else
|
|
a = 4
|
|
end
|
|
|
|
assert 1 == a
|
|
|
|
if false
|
|
a = 1
|
|
else if true
|
|
a = 2
|
|
else if true
|
|
a = 3
|
|
else
|
|
a = 4
|
|
end
|
|
|
|
assert 2 == a
|
|
|
|
if false
|
|
a = 1
|
|
else if false
|
|
a = 2
|
|
else if true
|
|
a = 3
|
|
else
|
|
a = 4
|
|
end
|
|
|
|
assert 3 == a
|
|
|
|
if false
|
|
a = 1
|
|
else if false
|
|
a = 2
|
|
else if false
|
|
a = 3
|
|
else
|
|
a = 4
|
|
end
|
|
|
|
assert 4 == a
|
|
|
|
let! b = 54
|
|
let! c = 33
|
|
|
|
if true
|
|
let! b = 18
|
|
c = 7
|
|
assert 18 == b
|
|
end
|
|
|
|
assert 54 == b
|
|
assert 7 == c
|
|
|
|
|
|
assert_static_fail if 4 0; end
|