@@ -411,7 +411,11 @@ tl_tails = L.tails `eqP` (map unpackS . TL.tails)
411t_findSplit s = T.split s `eq` splitty
411t_findSplit s = T.split s `eq` splitty
412 where splitty t = case T.find s t of
412 where splitty t = case T.find s t of
413 (x,xs) -> x : L.map (T.drop (T.length s) . fst) xs
413 (x,xs) -> x : L.map (T.drop (T.length s) . fst) xs
414−t_split_split s = T.split s `eq` Slow.split s
414+t_split_split s = unsquare ((T.split s `eq` Slow.split s) .
416+tl_split_split s = unsquare (((TL.split (chunkify s) . chunkify) `eq`
417+ (map chunkify . T.split s)) .
415t_split_i (NotEmpty t) = id `eq` (T.intercalate t . T.split t)
419t_split_i (NotEmpty t) = id `eq` (T.intercalate t . T.split t)
416tl_split_i (NotEmpty t) = id `eq` (TL.intercalate t . TL.split t)
420tl_split_i (NotEmpty t) = id `eq` (TL.intercalate t . TL.split t)
@@ -434,7 +438,9 @@ t_chunksOf_same_lengths k = all ((==k) . T.length) . ini . T.chunksOf k
434t_chunksOf_length k t = len == T.length t || (k <= 0 && len == 0)
438t_chunksOf_length k t = len == T.length t || (k <= 0 && len == 0)
435 where len = L.sum . L.map T.length $ T.chunksOf k t
439 where len = L.sum . L.map T.length $ T.chunksOf k t
441+chunkify = TL.fromChunks . (:[])
437−tl_chunksOf k = T.chunksOf k `eq` (map (T.concat . TL.toChunks) . TL.chunksOf (fromIntegral k) . TL.fromChunks . (:[]))
443+tl_chunksOf k = T.chunksOf k `eq` (map (T.concat . TL.toChunks) . TL.chunksOf (fromIntegral k) . chunkify)
439t_lines = L.lines `eqP` (map unpackS . T.lines)
445t_lines = L.lines `eqP` (map unpackS . T.lines)
440tl_lines = L.lines `eqP` (map unpackS . TL.lines)
446tl_lines = L.lines `eqP` (map unpackS . TL.lines)
@@ -793,6 +799,7 @@ tests = [
793 testGroup "breaking many" [
799 testGroup "breaking many" [
794 testProperty "t_findSplit" t_findSplit,
800 testProperty "t_findSplit" t_findSplit,
795 testProperty "t_split_split" t_split_split,
801 testProperty "t_split_split" t_split_split,
802+ testProperty "tl_split_split" tl_split_split,
796 testProperty "t_split_i" t_split_i,
803 testProperty "t_split_i" t_split_i,
797 testProperty "tl_split_i" tl_split_i,
804 testProperty "tl_split_i" tl_split_i,
798 testProperty "t_splitBy" t_splitBy,
805 testProperty "t_splitBy" t_splitBy,