validate dependabot configuration
[cabal.git] / cabal-install / tests / UnitTests / Distribution / Solver / Modular / Builder.hs
blob6eb27d39c3bf651b8aff4611b15fcf9de7dc9a83
1 module UnitTests.Distribution.Solver.Modular.Builder
2 ( tests
3 ) where
5 import Distribution.Solver.Modular.Builder
7 import Test.Tasty
8 import Test.Tasty.QuickCheck
10 tests :: [TestTree]
11 tests =
12 [ testProperty "splitsAltImplementation" splitsTest
15 -- | Simpler splits implementation
16 splits' :: [a] -> [(a, [a])]
17 splits' [] = []
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