Add some additional testing files

This commit is contained in:
John Wiegley 2018-05-06 12:56:43 -07:00
parent 439c819bba
commit fb5993c0fa
No known key found for this signature in database
GPG Key ID: C144D8F4F19FE630
2 changed files with 18 additions and 0 deletions

12
tests/files/attrs.nix Normal file
View File

@ -0,0 +1,12 @@
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;
}

6
tests/files/if-then.nix Normal file
View File

@ -0,0 +1,6 @@
# [ ({ a = 1; b = 2; } // { c = 1; d = 2; })
# ([1 2 3] ++ [4.0 5.0 6.0])
# (x: y: x + y)
# ]
({ x, y ? x + 1 }: x + x)