From: John Goerzen Date: Tue, 12 Aug 2008 05:41:30 +0000 (-0500) Subject: Added test for string3501 X-Git-Url: https://code.delx.au/offlineimap/commitdiff_plain/8ae93700a5116f3aac00fb006b1a93ae0a5305bc Added test for string3501 --- diff --git a/testsrc/TestParserPrim.hs b/testsrc/TestParserPrim.hs index 49c4a32..ec65c06 100644 --- a/testsrc/TestParserPrim.hs +++ b/testsrc/TestParserPrim.hs @@ -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 ]