labs/lib/src/attrs/default.test.nix

18 lines
282 B
Nix
Raw Normal View History

2024-06-01 11:00:53 +00:00
let
lib = import ./../default.nix;
in {
"select" = {
"selects a nested value" = let
expected = "value";
actual =
lib.attrs.select
["x" "y" "z"]
null
{
x.y.z = expected;
};
in
actual == expected;
};
}