8 res=$(zpm-hash "$1" "$2")
9 okstreq "$res" "$2" "$1 == $2"
15 vtest hash.test e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
16 printf 'foo\n' > hash.test
17 vtest hash.test b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c
21 res=$(printf 'foo\n' | zpm-hash)
22 okstreq $res b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c
24 res=$(printf 'foo\n' | zpm-hash -)
25 okstreq $res b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c