mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 14:06:16 +02:00
test/hash.sh: add to-base32 test for nix hash
This commit is contained in:
parent
2f32303f93
commit
08510c5ed0
1 changed files with 2 additions and 0 deletions
|
@ -80,6 +80,8 @@ try3() {
|
|||
[ "$sri" = "$1-$4" ]
|
||||
h32=$(nix-hash --type "$1" --to-base32 "$2")
|
||||
[ "$h32" = "$3" ]
|
||||
h32=$(nix hash to-base32 --type "$1" "$2")
|
||||
[ "$h32" = "$3" ]
|
||||
h16=$(nix-hash --type "$1" --to-base16 "$h32")
|
||||
[ "$h16" = "$2" ]
|
||||
h16=$(nix hash to-base16 --type "$1" "$h64")
|
||||
|
|
Loading…
Reference in a new issue