about summary refs log tree commit diff
path: root/src/libexpr/eval-test.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2010-03-30T13·47+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2010-03-30T13·47+0000
commit5b72d8a749e6718986f6e2bfef2ae725981a26ff (patch)
treed16dbf821841a78a92f7fa45852bc2ba4333fb21 /src/libexpr/eval-test.cc
parentd78a05ab4014d75fd1e394961376f02cff20ed88 (diff)
* Implemented `map'.
Diffstat (limited to 'src/libexpr/eval-test.cc')
-rw-r--r--src/libexpr/eval-test.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libexpr/eval-test.cc b/src/libexpr/eval-test.cc
index 8aade1298f3d..0b20883a33d4 100644
--- a/src/libexpr/eval-test.cc
+++ b/src/libexpr/eval-test.cc
@@ -68,6 +68,8 @@ void run(Strings args)
     doTest("let x = x; in if true || x then 1 else 2");
     doTest("/etc/passwd");
     doTest("import ./foo.nix");
+    doTest("map (x: __add 1 x) [ 1 2 3 ]");
+    doTest("map (__add 1) [ 1 2 3 ]");
 }