1 module UnitTests
.Distribution
.Client
.BuildReport
5 import Distribution
.Client
.Compat
.Prelude
6 import UnitTests
.Distribution
.Client
.ArbitraryInstances
()
7 import UnitTests
.Distribution
.Client
.TreeDiffInstances
()
10 import Data
.TreeDiff
.QuickCheck
(ediffEq
)
11 import Test
.QuickCheck
(Property
, counterexample
)
12 import Test
.Tasty
(TestTree
)
13 import Test
.Tasty
.QuickCheck
(testProperty
)
15 import Distribution
.Client
.BuildReports
.Anonymous
(BuildReport
, parseBuildReport
, showBuildReport
)
16 import Distribution
.Simple
.Utils
(toUTF8BS
)
19 import Test
.QuickCheck
.Instances
.Cabal
()
23 [ testProperty
"test" roundtrip
26 roundtrip
:: BuildReport
-> Property
29 Right br `ediffEq` parseBuildReport
(toUTF8BS str
)
32 str
= showBuildReport br