From 9675cdb545a139984a2d765397f3a5e26472a49e Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Fri, 8 Jul 2022 10:23:07 +0200 Subject: Use CRLF as line ending in test files --- src/imap/mailbox_view.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/imap/mailbox_view.rs b/src/imap/mailbox_view.rs index 29fb98a..bffcd9b 100644 --- a/src/imap/mailbox_view.rs +++ b/src/imap/mailbox_view.rs @@ -851,7 +851,7 @@ mod tests { for pref in prefixes.iter() { println!("{}", pref); let txt = fs::read(format!("{}.eml", pref))?; - let exp = fs::read(format!("{}.body", pref))?; + let exp = fs::read(format!("{}.dovecot.body", pref))?; let message = Message::parse(&txt).unwrap(); let mut resp = Vec::new(); @@ -864,6 +864,7 @@ mod tests { let exp_str = String::from_utf8_lossy(exp_no_parenthesis).to_lowercase(); println!("aerogramme: {}\ndovecot: {}", resp_str, exp_str); + //println!("\n\n {} \n\n", String::from_utf8_lossy(&resp)); assert_eq!(resp_str, exp_str); } -- cgit v1.2.3