Add some test files

This commit is contained in:
John Wiegley 2018-03-30 01:14:06 -07:00
parent 4e698d76fa
commit b456eba4d6
6 changed files with 17 additions and 0 deletions

1
tests/files/file.nix Normal file
View File

@ -0,0 +1 @@
({ x ? 1, y ? x * 3 }: import ./file2.nix { a = y; }) {}

1
tests/files/file2.nix Normal file
View File

@ -0,0 +1 @@
{ a }: a + 100

1
tests/files/force.nix Normal file
View File

@ -0,0 +1 @@
let f = { a = 1; b = import ./hello.nix; }; in f.a

1
tests/files/goodbye.nix Normal file
View File

@ -0,0 +1 @@
"Goodbye, world!"

1
tests/files/hello.nix Normal file
View File

@ -0,0 +1 @@
"Hello, world!"

12
tests/files/test.nix Normal file
View 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 ]