]> code.delx.au - offlineimap/blobdiff - testsrc/TestParserPrim.hs
Added test for string3501
[offlineimap] / testsrc / TestParserPrim.hs
index 49c4a325085c018b36735684c7725c671163850d..ec65c06138c3b220a47bc8ca3123f7591e269c37 100644 (file)
@@ -52,6 +52,11 @@ gen_literal :: String -> String
 gen_literal s =
     "{" ++ show (length s) ++ "}\r\n" ++ s
 
+prop_string3501 :: String -> Bool -> Result
+prop_string3501 s True = p string3501 (gen_quoted s) @?= Right s
+prop_string3501 s False = p string3501 (gen_literal s) @?= Right s
+    
 allt = [q "quoted" prop_quoted,
-        q "literal" prop_literal
+        q "literal" prop_literal,
+        q "string3501" prop_string3501
        ]