Hash test: Depend on new StorePath module.

This commit is contained in:
Shea Levy 2019-03-22 09:42:33 -04:00
parent 194261bffa
commit 8dd4805936
No known key found for this signature in database
GPG Key ID: 5C0BD6957D86FE27

View File

@ -23,7 +23,7 @@ import Test.Tasty.QuickCheck
import Text.Read (readMaybe)
import System.Nix.Hash
import System.Nix.Path
import System.Nix.StorePath
import NarFormat -- TODO: Move the fixtures into a common module
spec_hash :: Spec
@ -45,5 +45,5 @@ spec_hash = do
let exampleStr =
"source:sha256:2bfef67de873c54551d884fdab3055d84d573e654efa79db3"
<> "c0d7b98883f9ee3:/nix/store:myfile"
shouldBe (encodeBase32 @PathHashAlgo (hash exampleStr))
shouldBe (encodeBase32 @StorePathHashAlgo (hash exampleStr))
"xv2iccirbrvklck36f1g7vldn5v58vck"