diff options
Diffstat (limited to 'tests/test_encoding.rs')
-rw-r--r-- | tests/test_encoding.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_encoding.rs b/tests/test_encoding.rs index 1579449..9b339b5 100644 --- a/tests/test_encoding.rs +++ b/tests/test_encoding.rs @@ -106,6 +106,14 @@ fn base64_parts_are_decoded() { } #[test] +fn base64_boundaries_remain_on_their_own_line() { + let email = Email::from_vec(TEST_EMAIL_MULTIPART.to_string().into_bytes()).unwrap(); + + assert!(!email.data().search(r"[^\n]--XtT01VFrJIenjlg\+ZCXSSWq4").unwrap()); + assert!(!email.data().search(r"[^\n]--2c\+OeCbICgJrtINI5EFlsI6G").unwrap()); +} + +#[test] fn non_text_base64_is_not_decoded() { let email = Email::from_vec(TEST_EMAIL_MULTIPART.to_string().into_bytes()).unwrap(); |