summaryrefslogtreecommitdiff
path: root/test/fib.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2012-06-06 01:07:32 -0400
committerOri Bernstein <ori@eigenstate.org>2012-06-06 01:07:32 -0400
commitf4d54a5bc70ba219402c1b20a16423bce1704ed9 (patch)
tree10e7a048dac2a5e93f2eb8de379f6523f8aa45ff /test/fib.myr
parent3065ee64d255b9eca94efd48269cd291960d6c4e (diff)
downloadmc-f4d54a5bc70ba219402c1b20a16423bce1704ed9.tar.gz
Add loop generation test.
Diffstat (limited to 'test/fib.myr')
-rw-r--r--test/fib.myr4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fib.myr b/test/fib.myr
index 6eb4b44..f744a27 100644
--- a/test/fib.myr
+++ b/test/fib.myr
@@ -1,5 +1,5 @@
const fib = {n
- if n == 0
+ if n <= 0
-> 0
elif n == 1
-> 1
@@ -9,6 +9,6 @@ const fib = {n
}
const main = {
- -> fib(4)
+ -> fib(2)
}