about summary refs log tree commit diff
path: root/src/test.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-06-18T12·36+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-06-18T12·36+0000
commit94cf1f86bb5d8516583f0d39ad22dbc853019798 (patch)
tree1796f2c1494510f07bacb1fb0538e3f7a63a5b48 /src/test.cc
parentbc57eb3c8a54df819bad9c300ff5569762f15c28 (diff)
* Lambdas, applications, substitutions.
Diffstat (limited to 'src/test.cc')
-rw-r--r--src/test.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test.cc b/src/test.cc
index 334e409de39c..019c7bf7e580 100644
--- a/src/test.cc
+++ b/src/test.cc
@@ -69,6 +69,9 @@ void runTests()
     evalTest(ATmake("Str(\"Hello World\")"));
     evalTest(ATmake("Bool(True)"));
     evalTest(ATmake("Bool(False)"));
+    evalTest(ATmake("App(Lam(\"x\", Var(\"x\")), Str(\"Hello World\"))"));
+    evalTest(ATmake("App(App(Lam(\"x\", Lam(\"y\", Var(\"x\"))), Str(\"Hello World\")), Str(\"Hallo Wereld\"))"));
+    evalTest(ATmake("App(Lam(\"sys\", Lam(\"x\", [Var(\"x\"), Var(\"sys\")])), Str(\"i686-suse-linux\"))"));
 
     Hash builder1 = addValue("./test-builder-1.sh");