diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2010-03-30T13·47+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2010-03-30T13·47+0000 |
commit | 5b72d8a749e6718986f6e2bfef2ae725981a26ff (patch) | |
tree | d16dbf821841a78a92f7fa45852bc2ba4333fb21 /src/libexpr/eval-test.cc | |
parent | d78a05ab4014d75fd1e394961376f02cff20ed88 (diff) |
* Implemented `map'.
Diffstat (limited to 'src/libexpr/eval-test.cc')
-rw-r--r-- | src/libexpr/eval-test.cc | 2 |
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 ]"); } |