summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/hog.ur7
-rw-r--r--tests/hog.urp1
-rw-r--r--tests/hog.urs1
3 files changed, 9 insertions, 0 deletions
diff --git a/tests/hog.ur b/tests/hog.ur
new file mode 100644
index 00000000..419d202d
--- /dev/null
+++ b/tests/hog.ur
@@ -0,0 +1,7 @@
+fun more n =
+ if n <= 0 then
+ "!"
+ else
+ more (n-1) ^ more (n-1)
+
+fun main n = return <xml>{[more n]}</xml>
diff --git a/tests/hog.urp b/tests/hog.urp
new file mode 100644
index 00000000..615fb529
--- /dev/null
+++ b/tests/hog.urp
@@ -0,0 +1 @@
+hog
diff --git a/tests/hog.urs b/tests/hog.urs
new file mode 100644
index 00000000..38b757ea
--- /dev/null
+++ b/tests/hog.urs
@@ -0,0 +1 @@
+val main : int -> transaction page