Commit 63bdf02c authored by Alexis Williams's avatar Alexis Williams
Browse files

Make test present errors as hex

parent 03644697
import Test.Cabal.Prelude
import qualified Data.ByteString as BS
import qualified Data.ByteString.Base16 as BS16
import qualified Crypto.Hash.SHA256 as SHA256
import System.FilePath
( (</>) )
......@@ -14,4 +15,4 @@ main = cabalTest $ do
known <- liftIO (BS.readFile knownSdist)
unknown <- liftIO (BS.readFile mySdist)
assertEqual "hashes didn't match for sdist" (SHA256.hash known) (SHA256.hash unknown)
assertEqual "hashes didn't match for sdist" (BS16.encode $ SHA256.hash known) (BS16.encode $ SHA256.hash unknown)
......@@ -48,6 +48,7 @@ library
temporary,
text,
cryptohash-sha256,
base16-bytestring,
Cabal >= 2.3
ghc-options: -Wall -fwarn-tabs
if !os(windows)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment