@@ -63,6 +63,12 @@ string :: L.Text -> L.Text -> Property
6363string s t = parseT (P.string s') (s `L.append` t) === Just s'
6464 where s' = toStrict s
6565
66+strings :: L.Text -> L.Text -> L.Text -> Property
67+strings s t u =
68+ parseT (P.string (toStrict s) >> P.string t') (L.concat [s,t,u])
69+ === Just t'
70+ where t' = toStrict t
71+
6672stringCI :: T.Text -> Property
6773stringCI s = P.parseOnly (P.stringCI fs) s === Right s
6874 where fs = T.toCaseFold s
@@ -171,6 +177,7 @@ tests = [
171177 , testProperty "skip" skip
172178 , testProperty "skipWhile" skipWhile
173179 , testProperty "string" string
180+ , testProperty "strings" strings
174181 , testProperty "stringCI" stringCI
175182 , testProperty "take" take
176183 , testProperty "takeText" takeText