test dehtml for pre-tag (wrote that little test to test the new coverage script :)[D

This commit is contained in:
B. Petersen
2021-04-15 00:07:04 +02:00
committed by link2xt
parent ac9394cb16
commit 9ecb6d9b15

View File

@@ -392,6 +392,13 @@ mod tests {
assert_eq!(txt.trim(), "lots of text");
}
#[test]
fn test_pre_tag() {
let input = "<html><pre>\ntwo\nlines\n</pre></html>";
let txt = dehtml(input).unwrap();
assert_eq!(txt.trim(), "two\nlines");
}
#[async_std::test]
async fn test_quote_div() {
let input = include_str!("../test-data/message/gmx-quote-body.eml");