@@ -478,9 +478,11 @@ tl_elemIndex c = (fmap fromIntegral . L.elemIndex c) `eqP` TL.elemIndex c
478sf_elemIndices p c= (L.elemIndices c . L.filter p) `eqP` (S.elemIndices c . S.filter p)
478sf_elemIndices p c= (L.elemIndices c . L.filter p) `eqP` (S.elemIndices c . S.filter p)
479t_elemIndices c = L.elemIndices c`eqP` T.elemIndices c
479t_elemIndices c = L.elemIndices c`eqP` T.elemIndices c
480tl_elemIndices c = (fmap fromIntegral . L.elemIndices c) `eqP` TL.elemIndices c
480tl_elemIndices c = (fmap fromIntegral . L.elemIndices c) `eqP` TL.elemIndices c
481+t_count t = (subtract 1 . L.length . T.split t) `eq` T.count t
482+tl_count t = (subtract 1 . L.genericLength . TL.split t) `eq` TL.count t
481−sf_countChar p c = (L.length . L.elemIndices c . L.filter p) `eqP` (S.countChar c . S.filter p)
483+sf_countChar p c = (L.length . L.elemIndices c . L.filter p) `eqP` (S.countChar c . S.filter p)
482−t_countChar c = (L.length . L.elemIndices c) `eqP` T.countChar c
484+t_countChar c = (L.length . L.elemIndices c) `eqP` T.countChar c
483−tl_countChar c = (fromIntegral . L.length . L.elemIndices c) `eqP` TL.countChar c
485+tl_countChar c = (fromIntegral . L.length . L.elemIndices c) `eqP` TL.countChar c
484t_zip s = L.zip s `eqP` T.zip (packS s)
486t_zip s = L.zip s `eqP` T.zip (packS s)
485tl_zip s = L.zip s `eqP` TL.zip (packS s)
487tl_zip s = L.zip s `eqP` TL.zip (packS s)
486sf_zipWith p c s = (L.zipWith c (L.filter p s) . L.filter p) `eqP` (unpackS . S.zipWith c (S.filter p $ packS s) . S.filter p)
488sf_zipWith p c s = (L.zipWith c (L.filter p s) . L.filter p) `eqP` (unpackS . S.zipWith c (S.filter p $ packS s) . S.filter p)
@@ -836,6 +838,8 @@ tests = [
836 testProperty "sf_elemIndices" sf_elemIndices,
838 testProperty "sf_elemIndices" sf_elemIndices,
837 testProperty "t_elemIndices" t_elemIndices,
839 testProperty "t_elemIndices" t_elemIndices,
838 testProperty "tl_elemIndices" tl_elemIndices,
840 testProperty "tl_elemIndices" tl_elemIndices,
841+ testProperty "t_count" t_count,
842+ testProperty "tl_count" tl_count,
839 testProperty "sf_countChar" sf_countChar,
843 testProperty "sf_countChar" sf_countChar,
840 testProperty "t_countChar" t_countChar,
844 testProperty "t_countChar" t_countChar,
841 testProperty "tl_countChar" tl_countChar
845 testProperty "tl_countChar" tl_countChar