summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2015-12-20 14:18:52 -0500
committerGravatar Adam Chlipala <adam@chlipala.net>2015-12-20 14:18:52 -0500
commit68b355524cc20056d8c059138be225aaa9762e0a (patch)
tree6c9a407a965d2cdd5f30815cc3e642a6f9b3d451 /tests
parent7bf4f9f063dcdc9fc50ad6ac6143b113535b68f0 (diff)
parent0271786bacdf9c12a142367a479b24ba111ebd17 (diff)
Merge Sqlcache
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>