Skip to content

Commit 0de4c39

Browse files
author
Jayce Fayne
committed
add test
1 parent 688fc0d commit 0de4c39

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
@@ -1912,6 +1912,14 @@ mod tests {
19121912
};
19131913
}
19141914

1915+
#[test]
1916+
fn test_recursion_limit() {
1917+
let mail_filepath = "./tests/files/nested.eml";
1918+
let mail = std::fs::read(mail_filepath)
1919+
.expect(&format!("Unable to open the file [{}]", mail_filepath));
1920+
parse_mail(&mail).err().unwrap();
1921+
}
1922+
19151923
#[test]
19161924
fn test_body_content_encoding_with_multipart() {
19171925
let mail_filepath = "./tests/files/test_email_01.txt";

0 commit comments

Comments
 (0)