summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2015-11-19 16:02:04 -0500
committerGravatar Adam Chlipala <adam@chlipala.net>2015-11-19 16:02:04 -0500
commit027ffcf5b2e3f71a42857547b17b0824d38a3f85 (patch)
tree326754f0948b772e98dec6eaea1915888f481412 /tests
parent30dd885d1fc3013be0e3c2a45b2e0117f684f40a (diff)
Fix condition for installing new cache entries
Diffstat (limited to 'tests')
-rw-r--r--tests/fib.ur10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/fib.ur b/tests/fib.ur
new file mode 100644
index 00000000..9d7fd340
--- /dev/null
+++ b/tests/fib.ur
@@ -0,0 +1,10 @@
+fun fib n =
+ if n = 0 then
+ 0
+ else if n = 1 then
+ 1
+ else
+ fib (n - 1) + fib (n - 2)
+
+fun main n : transaction page =
+ return <xml>{[fib n]}</xml>