1 module UnitTests
.Distribution
.Solver
.Modular
.Builder
5 import Distribution
.Solver
.Modular
.Builder
8 import Test
.Tasty
.QuickCheck
12 [ testProperty
"splitsAltImplementation" splitsTest
15 -- | Simpler splits implementation
16 splits
' :: [a
] -> [(a
, [a
])]
18 splits
' (x
: xs
) = (x
, xs
) : map (\(y
, ys
) -> (y
, x
: ys
)) (splits
' xs
)
20 splitsTest
:: [Int] -> Property
21 splitsTest xs
= splits
' xs
=== splits xs