@@ -478,9 +478,11 @@ tl_elemIndex c = (fmap fromIntegral . L.elemIndex c) `eqP` TL.elemIndex c
478478sf_elemIndices p c= (L.elemIndices c . L.filter p) `eqP` (S.elemIndices c . S.filter p)
479479t_elemIndices c = L.elemIndices c`eqP` T.elemIndices c
480480tl_elemIndices c = (fmap fromIntegral . L.elemIndices c) `eqP` TL.elemIndices c
481−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
483−tl_countChar c = (fromIntegral . L.length . L.elemIndices c) `eqP` TL.countChar 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
483+sf_countChar p c = (L.length . L.elemIndices c . L.filter p) `eqP` (S.countChar c . S.filter p)
484+t_countChar c = (L.length . L.elemIndices c) `eqP` T.countChar c
485+tl_countChar c = (fromIntegral . L.length . L.elemIndices c) `eqP` TL.countChar c
484486t_zip s = L.zip s `eqP` T.zip (packS s)
485487tl_zip s = L.zip s `eqP` TL.zip (packS s)
486488sf_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 = [
836838 testProperty "sf_elemIndices" sf_elemIndices,
837839 testProperty "t_elemIndices" t_elemIndices,
838840 testProperty "tl_elemIndices" tl_elemIndices,
841+ testProperty "t_count" t_count,
842+ testProperty "tl_count" tl_count,
839843 testProperty "sf_countChar" sf_countChar,
840844 testProperty "t_countChar" t_countChar,
841845 testProperty "tl_countChar" tl_countChar