mirror of
https://github.com/divnix/digga.git
synced 2024-11-26 12:03:03 +03:00
27 lines
478 B
Nix
27 lines
478 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
}:
|
|
with lib;
|
|
lib.runTests {
|
|
testRakeLeaves = {
|
|
expr = rakeLeaves ./profiles;
|
|
expected = {
|
|
f = ./profiles/f.nix;
|
|
foo = ./profiles/foo;
|
|
t = {
|
|
bar = ./profiles/t/bar.nix;
|
|
};
|
|
};
|
|
};
|
|
|
|
testFlattenTree = {
|
|
expr = flattenTree (rakeLeaves ./profiles);
|
|
expected = {
|
|
f = ./profiles/f.nix;
|
|
foo = ./profiles/foo;
|
|
"t.bar" = ./profiles/t/bar.nix;
|
|
};
|
|
};
|
|
}
|