aboutsummaryrefslogtreecommitdiffstats
path: root/test/testdata/eval-okay-zipAttrsWith.nix
diff options
context:
space:
mode:
Diffstat (limited to 'test/testdata/eval-okay-zipAttrsWith.nix')
-rw-r--r--test/testdata/eval-okay-zipAttrsWith.nix9
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 @@
1with import ./lib.nix;
2
3let
4 str = builtins.hashString "sha256" "test";
5in
6builtins.zipAttrsWith
7 (n: v: { inherit n v; })
8 (map (n: { ${builtins.substring n 1 str} = n; })
9 (range 0 31))