Skip to content

Commit 7fd0c3d

Browse files
committed
remove time travelling partition with test, not exposed in 0.12 series yet
1 parent 4dc4798 commit 7fd0c3d

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

tests/Tests/Vector.hs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ testPolymorphicFunctions _ = $(testProperties [
173173

174174
-- Paritioning
175175
'prop_partition, {- 'prop_unstablePartition, -}
176-
'prop_partitionWith,
177176
'prop_span, 'prop_break,
178177

179178
-- Searching
@@ -315,8 +314,6 @@ testPolymorphicFunctions _ = $(testProperties [
315314
prop_dropWhile :: P ((a -> Bool) -> v a -> v a) = V.dropWhile `eq` dropWhile
316315
prop_partition :: P ((a -> Bool) -> v a -> (v a, v a))
317316
= V.partition `eq` partition
318-
prop_partitionWith :: P ((a -> Either a a) -> v a -> (v a, v a))
319-
= V.partitionWith `eq` partitionWith
320317
prop_span :: P ((a -> Bool) -> v a -> (v a, v a)) = V.span `eq` span
321318
prop_break :: P ((a -> Bool) -> v a -> (v a, v a)) = V.break `eq` break
322319

@@ -468,13 +465,7 @@ testPolymorphicFunctions _ = $(testProperties [
468465
constructrN xs 0 _ = xs
469466
constructrN xs n f = constructrN (f xs : xs) (n-1) f
470467

471-
-- copied from GHC source code
472-
partitionWith :: (a -> Either b c) -> [a] -> ([b], [c])
473-
partitionWith _ [] = ([],[])
474-
partitionWith f (x:xs) = case f x of
475-
Left b -> (b:bs, cs)
476-
Right c -> (bs, c:cs)
477-
where (bs,cs) = partitionWith f xs
468+
478469

479470
testTuplyFunctions:: forall a v. (CommonContext a v, VectorContext (a, a) v, VectorContext (a, a, a) v) => v a -> [Test]
480471
testTuplyFunctions _ = $(testProperties [ 'prop_zip, 'prop_zip3

0 commit comments

Comments
 (0)