mirror of
https://github.com/haskell-nix/hnix-store.git
synced 2024-11-23 20:56:20 +03:00
17 lines
420 B
Haskell
17 lines
420 B
Haskell
module ContentAddressSpec where
|
|
|
|
import Test.Hspec (Spec, describe)
|
|
import Test.Hspec.QuickCheck (prop)
|
|
import Test.Hspec.Nix (roundtrips)
|
|
import System.Nix.Arbitrary ()
|
|
|
|
import qualified System.Nix.ContentAddress
|
|
|
|
spec :: Spec
|
|
spec = do
|
|
describe "ContentAddress" $ do
|
|
prop "roundtrips" $
|
|
roundtrips
|
|
System.Nix.ContentAddress.buildContentAddress
|
|
System.Nix.ContentAddress.parseContentAddress
|