@@ -408,9 +408,14 @@ tl_inits = L.inits `eqP` (map unpackS . TL.inits)
408t_tails = L.tails `eqP` (map unpackS . T.tails)
408t_tails = L.tails `eqP` (map unpackS . T.tails)
409tl_tails = L.tails `eqP` (map unpackS . TL.tails)
409tl_tails = L.tails `eqP` (map unpackS . TL.tails)
411−t_findSplit s = T.split s `eq` splitty
411+t_findSplit s t = (T.split s `eq` splitty) u
412− where splitty t = case T.find s t of
412+ where splitty v = case T.find s v 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+ u = T.concat [t,s,t]
415+tl_findSplit s t = (TL.split s `eq` splitty) u
416+ where splitty v = case TL.find s v of
417+ (x,xs) -> x : L.map (TL.drop (TL.length s) . fst) xs
418+ u = TL.concat [t,s,t]
414t_split_split s = unsquare ((T.split s `eq` Slow.split s) .
419t_split_split s = unsquare ((T.split s `eq` Slow.split s) .
415 T.intercalate s)
420 T.intercalate s)
416tl_split_split s = unsquare (((TL.split (chunkify s) . chunkify) `eq`
421tl_split_split s = unsquare (((TL.split (chunkify s) . chunkify) `eq`
@@ -798,6 +803,7 @@ tests = [
799 testGroup "breaking many" [
804 testGroup "breaking many" [
800 testProperty "t_findSplit" t_findSplit,
805 testProperty "t_findSplit" t_findSplit,
806+ testProperty "tl_findSplit" tl_findSplit,
801 testProperty "t_split_split" t_split_split,
807 testProperty "t_split_split" t_split_split,
802 testProperty "tl_split_split" tl_split_split,
808 testProperty "tl_split_split" tl_split_split,
803 testProperty "t_split_i" t_split_i,
809 testProperty "t_split_i" t_split_i,