Skip to content

Commit df7ffb4

Browse files
committed
Add test
1 parent cae5e7a commit df7ffb4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/Tests/Vector.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ testPolymorphicFunctions _ = $(testProperties [
172172

173173
-- Filtering
174174
'prop_filter, 'prop_ifilter, {- prop_filterM, -}
175+
'prop_uniq,
175176
'prop_mapMaybe, 'prop_imapMaybe,
176177
'prop_takeWhile, 'prop_dropWhile,
177178

@@ -410,6 +411,8 @@ testPolymorphicFunctions _ = $(testProperties [
410411
where
411412
prop :: P ((a -> v a) -> v a -> v a) = V.concatMap `eq` concatMap
412413

414+
prop_uniq :: P (v a -> v a)
415+
= V.uniq `eq` (map head . group)
413416
--prop_span = (V.span :: (a -> Bool) -> v a -> (v a, v a)) `eq2` span
414417
--prop_break = (V.break :: (a -> Bool) -> v a -> (v a, v a)) `eq2` break
415418
--prop_splitAt = (V.splitAt :: Int -> v a -> (v a, v a)) `eq2` splitAt

0 commit comments

Comments
 (0)