@@ -66,6 +66,12 @@ string :: L.ByteString -> L.ByteString -> Property
66string s t = parseBS (P.string s') (s `L.append` t) === Just s'
66string s t = parseBS (P.string s') (s `L.append` t) === Just s'
67 where s' = toStrictBS s
67 where s' = toStrictBS s
69+strings :: L.ByteString -> L.ByteString -> L.ByteString -> Property
71+ parseBS (P.string (toStrictBS s) >> P.string t') (L.concat [s,t,u])
73+ where t' = toStrictBS t
69skipWhile :: Word8 -> L.ByteString -> Property
75skipWhile :: Word8 -> L.ByteString -> Property
70skipWhile w s =
76skipWhile w s =
71 let t = L.dropWhile (<=w) s
77 let t = L.dropWhile (<=w) s
@@ -157,6 +163,7 @@ tests = [
157 , testProperty "skip" skip
163 , testProperty "skip" skip
158 , testProperty "skipWhile" skipWhile
164 , testProperty "skipWhile" skipWhile
159 , testProperty "string" string
165 , testProperty "string" string
166+ , testProperty "strings" strings
160 , testProperty "take" take
167 , testProperty "take" take
161 , testProperty "takeByteString" takeByteString
168 , testProperty "takeByteString" takeByteString
162 , testProperty "takeCount" takeCount
169 , testProperty "takeCount" takeCount