forked from lix-project/lix
* Tests for domain checks.
This commit is contained in:
parent
57751fdb55
commit
b545c669a0
7
tests/lang/eval-fail-bad-value.nix
Normal file
7
tests/lang/eval-fail-bad-value.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
let {
|
||||||
|
|
||||||
|
f = {x, y : ["baz" "bat"]}: x + y;
|
||||||
|
|
||||||
|
body = f {x = "foo"; y = "bar";};
|
||||||
|
|
||||||
|
}
|
1
tests/lang/eval-okay-good-value.exp
Normal file
1
tests/lang/eval-okay-good-value.exp
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Str("foobar")
|
7
tests/lang/eval-okay-good-value.nix
Normal file
7
tests/lang/eval-okay-good-value.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
let {
|
||||||
|
|
||||||
|
f = {x, y : ["baz" "bar" "bat"]}: x + y;
|
||||||
|
|
||||||
|
body = f {x = "foo"; y = "bar";};
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue