offlineimap rev 507

"Automatic Subversion Change Mailer" <[email protected]> Thu, 17 Jul 2003 11:40:56 -0500 (CDT)
Newsgroups gmane.mail.imap.offlineimap.subversion
Message-ID <[email protected]>
You are receiving this message because
all commits get sent to this address.

Author: jgoerzen
Date: 2003-07-17 11:40:46 -0500 (Thu, 17 Jul 2003)
New Revision: 507

Modified:
  imaplib/head/imap2/parser/grammarTest.py

Log:
Fixed quoted string and literal handling


Diff:
Modified: imaplib/head/imap2/parser/grammarTest.py
==============================================================================
--- imaplib/head/imap2/parser/grammarTest.py	2003-07-17 16:33:45 UTC (rev 506)
+++ imaplib/head/imap2/parser/grammarTest.py	2003-07-17 16:40:46 UTC (rev 507)
@@ -75,10 +75,13 @@
             ('"Basic Quoted"', 'Basic Quoted'),
             ('NIL', None),
             ("{5}\r\nTest1", "Test1"),
+            ("{7}\r\nTest\r\n1", "Test\r\n1"),
+            ("{7}\r\nTest1\r\n", "Test1\r\n"),
+            ("{6}\r\nTest\n1", "Test\n1"),
             ('""', ""),
             ("{0}\r\n", ""),
-            #(r'"Quoted with \"Quotes\""', 'Quoted with "Quotes"'),
-            (r'"Quoted with \"', r'Quoted with \\'))
+            (r'"Quoted with \"Quotes\""', 'Quoted with "Quotes"'),
+            ("\"Quoted with \\\\\"", "Quoted with \\"))
 
         for test, expected in tests:
             actual = parse(test, 'test_nstring')