mirror of
https://github.com/haskell-nix/hnix-store.git
synced 2024-11-23 20:56:20 +03:00
18 lines
418 B
Haskell
18 lines
418 B
Haskell
module DerivedPathSpec where
|
|
|
|
import Test.Hspec (Spec, describe)
|
|
import Test.Hspec.QuickCheck (prop)
|
|
import Test.Hspec.Nix (roundtrips)
|
|
|
|
import System.Nix.Arbitrary ()
|
|
|
|
import qualified System.Nix.DerivedPath
|
|
|
|
spec :: Spec
|
|
spec = do
|
|
describe "DerivedPath" $ do
|
|
prop "roundtrips" $ \sd ->
|
|
roundtrips
|
|
(System.Nix.DerivedPath.derivedPathToText sd)
|
|
(System.Nix.DerivedPath.parseDerivedPath sd)
|