aboutsummaryrefslogtreecommitdiffstats
path: root/test/fac.tpr
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-03-30 18:47:32 +0000
committerDavid Robillard <d@drobilla.net>2009-03-30 18:47:32 +0000
commitfdc794f5dc9de5b55fff71939ee4374ea38efa8f (patch)
tree3d09e93504ec9c11013a306fd6abb3949f01789f /test/fac.tpr
parent454e8908d51d2bb8c83af69f69b2c72e9606967d (diff)
downloadresp-fdc794f5dc9de5b55fff71939ee4374ea38efa8f.tar.gz
resp-fdc794f5dc9de5b55fff71939ee4374ea38efa8f.tar.bz2
resp-fdc794f5dc9de5b55fff71939ee4374ea38efa8f.zip
Compile things into separate build dir.
Move .tpr files to test dir. git-svn-id: http://svn.drobilla.net/resp/tuplr@109 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'test/fac.tpr')
-rw-r--r--test/fac.tpr7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/fac.tpr b/test/fac.tpr
new file mode 100644
index 0000000..77e4776
--- /dev/null
+++ b/test/fac.tpr
@@ -0,0 +1,7 @@
+; Factorial
+(def fac (fn (n)
+ (if (= 0 n) 1
+ (* n (fac (- n 1))))))
+
+(fac 5)
+