about summary refs log tree commit diff
path: root/third_party/nix/src/tests/lang/eval-okay-hashstring.nix
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/src/tests/lang/eval-okay-hashstring.nix')
-rw-r--r--third_party/nix/src/tests/lang/eval-okay-hashstring.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/third_party/nix/src/tests/lang/eval-okay-hashstring.nix b/third_party/nix/src/tests/lang/eval-okay-hashstring.nix
new file mode 100644
index 000000000000..b0f62b245ca8
--- /dev/null
+++ b/third_party/nix/src/tests/lang/eval-okay-hashstring.nix
@@ -0,0 +1,4 @@
+let
+  strings = [ "" "text 1" "text 2" ];
+in
+  builtins.concatLists (map (hash: map (builtins.hashString hash) strings) ["md5" "sha1" "sha256" "sha512"])