1 {-# OPTIONS_GHC -fno-warn-orphans #-}
2 module UnitTests
.Distribution
.System
6 import Distribution
.Parsec
7 import Distribution
.Pretty
8 import Distribution
.System
10 import Test
.Tasty
.QuickCheck
(testProperty
)
11 import Test
.QuickCheck
(Property
, (===))
12 import Test
.QuickCheck
.Instances
.Cabal
()
14 textRoundtrip
:: (Show a
, Eq a
, Pretty a
, Parsec a
) => a
-> Property
15 textRoundtrip x
= simpleParsec
(prettyShow x
) === Just x
19 [ testProperty
"Text OS round trip" (textRoundtrip
:: OS
-> Property
)
20 , testProperty
"Text Arch round trip" (textRoundtrip
:: Arch
-> Property
)
21 , testProperty
"Text Platform round trip" (textRoundtrip
:: Platform
-> Property
)