]> code.delx.au - offlineimap/commitdiff
Added test for string3501
authorJohn Goerzen <jgoerzen@complete.org>
Tue, 12 Aug 2008 05:41:30 +0000 (00:41 -0500)
committerJohn Goerzen <jgoerzen@complete.org>
Tue, 12 Aug 2008 05:41:30 +0000 (00:41 -0500)
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
        ]