diff options
Diffstat (limited to 'test/testdata/eval-okay-zipAttrsWith.nix')
-rw-r--r-- | test/testdata/eval-okay-zipAttrsWith.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/testdata/eval-okay-zipAttrsWith.nix b/test/testdata/eval-okay-zipAttrsWith.nix new file mode 100644 index 0000000..877d4e5 --- /dev/null +++ b/test/testdata/eval-okay-zipAttrsWith.nix | |||
@@ -0,0 +1,9 @@ | |||
1 | with import ./lib.nix; | ||
2 | |||
3 | let | ||
4 | str = builtins.hashString "sha256" "test"; | ||
5 | in | ||
6 | builtins.zipAttrsWith | ||
7 | (n: v: { inherit n v; }) | ||
8 | (map (n: { ${builtins.substring n 1 str} = n; }) | ||
9 | (range 0 31)) | ||