Skip to content

Commit 6304769

Browse files
author
Jayce Fayne
committed
add test
1 parent 6a74c78 commit 6304769

2 files changed

Lines changed: 150015 additions & 0 deletions

File tree

src/lib.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1907,6 +1907,14 @@ mod tests {
19071907
};
19081908
}
19091909

1910+
#[test]
1911+
fn test_recursion_limit() {
1912+
let mail_filepath = "./tests/files/nested.eml";
1913+
let mail = std::fs::read(mail_filepath)
1914+
.expect(&format!("Unable to open the file [{}]", mail_filepath));
1915+
parse_mail(&mail).unwrap();
1916+
}
1917+
19101918
#[test]
19111919
fn test_body_content_encoding_with_multipart() {
19121920
let mail_filepath = "./tests/files/test_email_01.txt";

0 commit comments

Comments
 (0)