tvl-depot/tvix/eval/src/tests/nix_tests/eval-okay-xml.nix
Vincent Ambo 92c53fe982 feat(tvix/tests): check in Nix' language test suite
This adds scaffolding code for running the Nix language test suite.

The majority of eval-okay-* tests should eventually be runnable as-is
by Tvix, however the eval-fail-* tests might not as we intend to have
more useful error messages than upstream Nix.

Change-Id: I4f3227f0889c55e4274b804a3072850fb78dd1bd
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6126
Tested-by: BuildkiteCI
Autosubmit: tazjin <tazjin@tvl.su>
Reviewed-by: grfn <grfn@gws.fyi>
2022-08-24 21:25:41 +00:00

21 lines
199 B
Nix

rec {
x = 123;
y = 567.890;
a = "foo";
b = "bar";
c = "foo" + "bar";
f = {z, x, y}: if y then x else z;
id = x: x;
at = args@{x, y, z}: x;
ellipsis = {x, y, z, ...}: x;
}