Most tests for builtins now have `builtins.builtinName` as their name. This makes navigating the test list a bit easier Change-Id: Ief5af5c568a419bf9130601f9590e7a696b0dc0a
12 lines
230 B
Nix
12 lines
230 B
Nix
let
|
|
|
|
attrs = {y = "y"; x = "x"; foo = "foo";} // rec {x = "newx"; bar = x;};
|
|
|
|
names = builtins.attrNames attrs;
|
|
|
|
values = map (name: builtins.getAttr name attrs) names;
|
|
|
|
in
|
|
assert values == builtins.attrValues attrs;
|
|
values
|