projects
/
fur
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed one more test using ternary comparison
[fur]
/
examples
/
16_short_circuiting.fur
diff --git
a/examples/16_short_circuiting.fur
b/examples/16_short_circuiting.fur
index
f70e7b9
..
cb7b959
100644
(file)
--- a/
examples/16_short_circuiting.fur
+++ b/
examples/16_short_circuiting.fur
@@
-1,24
+1,12
@@
-def return_zero() do
- print('This should not print\n')
- 2
-end
-
-def return_one() do
- print('This should only print once.\n')
- 1
-end
-
def return_true() do
def return_true() do
- print('This should print exactly
twi
ce.\n')
+ print('This should print exactly
on
ce.\n')
true
end
def return_false() do
true
end
def return_false() do
- print('This should
print exactly twi
ce.\n')
+ print('This should
also print exactly on
ce.\n')
false
end
false
end
-0 < return_one() < 2
-0 < 0 < return_zero()
return_true() or return_true()
return_false() and return_false()
return_true() or return_true()
return_false() and return_false()