mirror of
https://github.com/haskell-nix/hnix-store.git
synced 2024-11-27 10:34:11 +03:00
16 lines
488 B
Haskell
16 lines
488 B
Haskell
module SignatureSpec where
|
|
|
|
import Test.Hspec (Spec, describe)
|
|
import Test.Hspec.Nix (roundtrips)
|
|
import Test.Hspec.QuickCheck (prop)
|
|
|
|
import System.Nix.Signature (signatureToText, parseSignature, narSignatureToText, parseNarSignature)
|
|
import System.Nix.Arbitrary ()
|
|
|
|
spec :: Spec
|
|
spec = do
|
|
describe "Signature" $ do
|
|
prop "roundtrips" $ roundtrips signatureToText parseSignature
|
|
describe "NarSignature" $ do
|
|
prop "roundtrips" $ roundtrips narSignatureToText parseNarSignature
|