19ed8f08b23d6ed204e6b27e5d1c0c6fe6bb11dd |
|
15-Nov-2015 |
Phil Carmody <phil@dovecot.fi> |
various - remove 8-bit characters from literal strings in test cases
C has a portable way of expressing characters not in the basic character
set, namely \xNN escaping. Otherwise, the interpretation of the raw utf-8
is implentation dependent. This has the benefit of making some tests'
expected output more obvious, such as "=c3=a4" matching "\xC3\xA4", even
if it hinders the readability of some natural-language-based tests.
Signed-off-by: Phil Carmody <phil@dovecot.fi> |
50052bca965fc3a210b0e55d757062a3c7eba226 |
|
28-Jul-2014 |
Phil Carmody <phil@dovecot.fi> |
lib-imap: test-imap-utf7 - comprehensive test suite
Several MUST NOTs or other standards violations were not being
trapped.
test_imap_utf7_unnecessary() tests:
Modified BASE64 MUST NOT be used to represent any printing US-ASCII
character which can represent itself.
test_imap_utf7_bad_ascii() tests:
All other characters (octet values 0x00-0x1f and 0x7f-0xff) are
represented in modified BASE64, ...
test_imap_utf7_non_utf16() tests that data containing a single straggling
octet is trapped.
test_imap_utf7_by_example() and test_imap_utf7_ucs4_cases() are just
the previous test suite split into 2 smaller tests.
Signed-off-by: Phil Carmody <phil@dovecot.fi> |