diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2010-04-14T15·01+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2010-04-14T15·01+0000 |
commit | 110d1557782fac4f8cafa27e5cbbcdebefb7a4c7 (patch) | |
tree | 4ddae428d11619534363f4e9be8dc10e35e7e5ce /src/libexpr/eval-test.cc | |
parent | 9985230c00226826949473c3862c0c3afea74aaf (diff) |
* Implemented withs.
Diffstat (limited to 'src/libexpr/eval-test.cc')
-rw-r--r-- | src/libexpr/eval-test.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libexpr/eval-test.cc b/src/libexpr/eval-test.cc index bcd3670dfedc..f87113e59704 100644 --- a/src/libexpr/eval-test.cc +++ b/src/libexpr/eval-test.cc @@ -72,7 +72,8 @@ void run(Strings args) doTest(state, "let { x = 1; body = x; }"); doTest(state, "with { x = 1; }; x"); doTest(state, "let x = 2; in with { x = 1; }; x"); // => 2 - doTest(state, "with { x = 1; }; with { x = 2; }; x"); // => 1 + doTest(state, "with { x = 1; }; with { x = 2; }; x"); // => 2 + doTest(state, "with { x = 1; }; with { y = 2; }; x"); // => 1 doTest(state, "[ 1 2 3 ]"); doTest(state, "[ 1 2 ] ++ [ 3 4 5 ]"); doTest(state, "123 == 123"); |