diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-05-02T11·20+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-05-02T11·20+0000 |
commit | ae55e79541ffbce7a051794d6d25e9e8c7b63b2d (patch) | |
tree | 2288881ce2a63dc4e56ea24681dbcbad16e823e5 /tests/lang | |
parent | dca43ef795c0589d47620241823393c739b99498 (diff) |
* More tests.
Diffstat (limited to 'tests/lang')
-rw-r--r-- | tests/lang/eval-fail-scope-5.nix | 2 | ||||
-rw-r--r-- | tests/lang/eval-okay-scope-6.exp | 1 | ||||
-rw-r--r-- | tests/lang/eval-okay-scope-6.nix | 7 |
3 files changed, 9 insertions, 1 deletions
diff --git a/tests/lang/eval-fail-scope-5.nix b/tests/lang/eval-fail-scope-5.nix index dc8243bc8546..f89a65a99be3 100644 --- a/tests/lang/eval-fail-scope-5.nix +++ b/tests/lang/eval-fail-scope-5.nix @@ -5,6 +5,6 @@ let { f = {x ? y, y ? x}: x + y; - body = f {x = "c";} + f {y = "d";}; + body = f {}; } diff --git a/tests/lang/eval-okay-scope-6.exp b/tests/lang/eval-okay-scope-6.exp new file mode 100644 index 000000000000..e2c962c9588a --- /dev/null +++ b/tests/lang/eval-okay-scope-6.exp @@ -0,0 +1 @@ +Str("ccdd") diff --git a/tests/lang/eval-okay-scope-6.nix b/tests/lang/eval-okay-scope-6.nix new file mode 100644 index 000000000000..0995d4e7e7e0 --- /dev/null +++ b/tests/lang/eval-okay-scope-6.nix @@ -0,0 +1,7 @@ +let { + + f = {x ? y, y ? x}: x + y; + + body = f {x = "c";} + f {y = "d";}; + +} |