aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCamil Staps2018-12-25 11:09:41 +0100
committerCamil Staps2018-12-25 11:09:41 +0100
commitcc314ff6231862424ce4a06716c836afe588ce22 (patch)
treeef2f852885d871d5bd3755f614b443a744418b13 /test
parentAvoid Data.Foldable due to imports (diff)
Add acker exampleHEADmaster
Diffstat (limited to 'test')
-rw-r--r--test/acker.result1
-rw-r--r--test/acker.test2
2 files changed, 3 insertions, 0 deletions
diff --git a/test/acker.result b/test/acker.result
new file mode 100644
index 0000000..8463e09
--- /dev/null
+++ b/test/acker.result
@@ -0,0 +1 @@
+1021
diff --git a/test/acker.test b/test/acker.test
new file mode 100644
index 0000000..2036861
--- /dev/null
+++ b/test/acker.test
@@ -0,0 +1,2 @@
+acker i j = if (i==0) (j+1) acker(i-1, if (j==0) 1 acker(i,j-1))
+acker(3,7)