Add some test files
This commit is contained in:
parent
4e698d76fa
commit
b456eba4d6
1
tests/files/file.nix
Normal file
1
tests/files/file.nix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
({ x ? 1, y ? x * 3 }: import ./file2.nix { a = y; }) {}
|
1
tests/files/file2.nix
Normal file
1
tests/files/file2.nix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{ a }: a + 100
|
1
tests/files/force.nix
Normal file
1
tests/files/force.nix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
let f = { a = 1; b = import ./hello.nix; }; in f.a
|
1
tests/files/goodbye.nix
Normal file
1
tests/files/goodbye.nix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
"Goodbye, world!"
|
1
tests/files/hello.nix
Normal file
1
tests/files/hello.nix
Normal file
|
@ -0,0 +1 @@
|
||||||
|
"Hello, world!"
|
12
tests/files/test.nix
Normal file
12
tests/files/test.nix
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
let x = rec {
|
||||||
|
|
||||||
|
y = 2;
|
||||||
|
z = { w = 4; };
|
||||||
|
v = rec {
|
||||||
|
u = 6;
|
||||||
|
t = [ u z.w s.q ];
|
||||||
|
};
|
||||||
|
s = { r = import ./goodbye.nix; q = 10; };
|
||||||
|
p = import ./hello.nix;
|
||||||
|
|
||||||
|
}; o = 100; in [ x.v.t x.z.w x.p x.p ]
|
Loading…
Reference in a new issue