| 565 | |
| 566 | #[tokio::test(flavor = "multi_thread", worker_threads = 2)] |
| 567 | async fn test_quote_div() { |
| 568 | let input = include_str!("../test-data/message/gmx-quote-body.eml"); |
| 569 | let dehtml = dehtml(input).unwrap(); |
| 570 | let SimplifiedText { |
| 571 | text, |
| 572 | is_forwarded, |
| 573 | is_cut, |
| 574 | top_quote, |
| 575 | footer, |
| 576 | } = dehtml; |
| 577 | assert_eq!(text, "Test"); |
| 578 | assert_eq!(is_forwarded, false); |
| 579 | assert_eq!(is_cut, false); |
| 580 | assert_eq!(top_quote.as_deref(), Some("test")); |
| 581 | assert_eq!(footer, None); |
| 582 | } |
| 583 | |
| 584 | #[test] |
| 585 | fn test_spaces() { |