forked from auxolotl/labs
18 lines
282 B
Nix
18 lines
282 B
Nix
|
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;
|
||
|
};
|
||
|
}
|