on master help sign in
Fix that silly broken test.

--HG-- extra : convert_revision : 799dc0d5ca09c91b2a24ec34a1fdec4b8a88e712

commita2b88c895699c7bd88fee212f25068a6485ef499 authorBryan O'Sullivan <bos@serpentine.com> dateTue 6 Oct 2009, 18:41 (17 years ago) parent7537b75
1 file changed+2−2
tests/Properties.hs+2−2
tests/Properties.hs+2−2
@@ -398,8 +398,8 @@ tl_inits = L.inits `eqP` (map unpackS . TL.inits)
398398t_tails = L.tails `eqP` (map unpackS . T.tails)
399399tl_tails = L.tails `eqP` (map unpackS . TL.tails)
400400
401−findSplit s t = let (x,xs) = T.find s t
402− in x : L.map (T.drop (T.length s)) xs
401+findSplit s t = case T.find s t of
402+ (x,xs) -> x : L.map (T.drop (T.length s)) xs
403403
404404t_findSplit s = T.split s `eq` findSplit s
405405t_split_split s = T.split s `eq` Slow.split s