mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-25 23:36:16 +02:00
* Tests for domain checks.
This commit is contained in:
parent
57751fdb55
commit
b545c669a0
3 changed files with 15 additions and 0 deletions
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