8dd4464c062fdea6846e8700e57daeb2f4378db6 |
|
04-Nov-2015 |
Phil Carmody <phil@dovecot.fi> |
lib: test-istream-crlf - fix expected output strings, add more coverage
Fix an out-by-one which was missing trailing carriage returns in _lf mode.
Debug: input = [19]:``...........N.N....R''
Debug: output= [19]:``...........N.N....R''
Debug: data = [18]:``...........N.N....''
test-istream-crlf.c:78: Assert(#20) failed: size == str_len(output)
Add some randomised tests to get better coverage of all possibilities.
Signed-off-by: Phil Carmody <phil@dovecot.fi> |