1 {-# LANGUAGE DeriveDataTypeable #-}
2 {-# LANGUAGE StandaloneDeriving #-}
3 module UnitTests
.Distribution
.PkgconfigVersion
(pkgconfigVersionTests
) where
6 import Test
.Tasty
.QuickCheck
8 import Distribution
.Parsec
(eitherParsec
)
9 import Distribution
.Pretty
10 import Distribution
.Types
.PkgconfigVersionRange
12 import Test
.QuickCheck
.Instances
.Cabal
()
14 pkgconfigVersionTests
:: [TestTree
]
15 pkgconfigVersionTests
=
16 [ testProperty
"simpleParsec . prettyShow = Just" prop_parse_disp
19 prop_parse_disp
:: PkgconfigVersionRange
-> Property
20 prop_parse_disp vr
= counterexample
(show (prettyShow vr
)) $
21 eitherParsec
(prettyShow vr
) === Right vr