diff options
author | Marc Weber <marco-oweber@gmx.de> | 2013-02-06T23·03+0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-02-08T18·26+0100 |
commit | 01a5ea9914b3933e63a88184861900615be76e12 (patch) | |
tree | 3c491ce644fe995d67fe53c0d33bb3162421de78 /tests/lang/eval-okay-hash.nix | |
parent | 8add116acd050bdcca84b8a092420566a6e6692c (diff) |
experimental/hash
adding primop function calculating hash of a string Signed-off-by: Marc Weber <marco-oweber@gmx.de>
Diffstat (limited to 'tests/lang/eval-okay-hash.nix')
-rw-r--r-- | tests/lang/eval-okay-hash.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/lang/eval-okay-hash.nix b/tests/lang/eval-okay-hash.nix new file mode 100644 index 000000000000..65cd8afeb00d --- /dev/null +++ b/tests/lang/eval-okay-hash.nix @@ -0,0 +1,6 @@ +let + md5 = builtins.hash "md5"; + sha256 = builtins.hash "sha256"; + strings = [ "text 1" "text 2" ]; +in + (builtins.map md5 strings) ++ (builtins.map sha256 strings) |