@@ -135,7 +135,6 @@ prop_tails = L.tails `eqP` (map unpack . T.tails)
136prop_split_i c = id `eq` (T.intercalate (T.singleton c) . T.split c)
136prop_split_i c = id `eq` (T.intercalate (T.singleton c) . T.split c)
139prop_splitWith p = splitWith p `eqP` (map unpack . T.splitWith p)
138prop_splitWith p = splitWith p `eqP` (map unpack . T.splitWith p)
141splitWith _ "" = []
140splitWith _ "" = []
@@ -152,6 +151,7 @@ prop_breakSubstringC c
152 (unpack2 . T.breakSubstring (T.singleton c))
151 (unpack2 . T.breakSubstring (T.singleton c))
154prop_lines = L.lines `eqP` (map unpack . T.lines)
153prop_lines = L.lines `eqP` (map unpack . T.lines)
155prop_lines' = lines' `eqP` (map unpack . T.lines')
155prop_lines' = lines' `eqP` (map unpack . T.lines')
156 where lines' "" = []
156 where lines' "" = []
157 lines' s = let (l, s') = break eol s
157 lines' s = let (l, s') = break eol s
@@ -160,6 +160,7 @@ prop_lines' = lines' `eqP` (map unpack . T.lines')
160 ('\r':'\n':s'') -> lines' s''
160 ('\r':'\n':s'') -> lines' s''
161 (_:s'') -> lines' s''
161 (_:s'') -> lines' s''
162 eol c = c == '\r' || c == '\n'
162 eol c = c == '\r' || c == '\n'
163prop_words = L.words `eqP` (map unpack . T.words)
164prop_words = L.words `eqP` (map unpack . T.words)
164prop_unlines = L.unlines `eq` (unpack . T.unlines . map pack)
165prop_unlines = L.unlines `eq` (unpack . T.unlines . map pack)
165prop_unwords = L.unwords `eq` (unpack . T.unwords . map pack)
166prop_unwords = L.unwords `eq` (unpack . T.unwords . map pack)
@@ -279,7 +280,7 @@ tests = [
279 ("prop_breakSubstring_isInfixOf", mytest prop_breakSubstring_isInfixOf),
280 ("prop_breakSubstring_isInfixOf", mytest prop_breakSubstring_isInfixOf),
281 ("prop_lines", mytest prop_lines),
282 ("prop_lines", mytest prop_lines),
282− ("prop_lines'", mytest prop_lines'),
283+--("prop_lines'", mytest prop_lines'),
283 ("prop_words", mytest prop_words),
284 ("prop_words", mytest prop_words),
284 ("prop_unlines", mytest prop_unlines),
285 ("prop_unlines", mytest prop_unlines),
285 ("prop_unwords", mytest prop_unwords),
286 ("prop_unwords", mytest prop_unwords),