Skip to content

Commit

Permalink
test/hash.sh: add to-base32 test for nix hash
Browse files Browse the repository at this point in the history
  • Loading branch information
ShamrockLee committed Mar 15, 2023
1 parent 2f32303 commit 08510c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/hash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 08510c5

Please sign in to comment.