Example blog post
FOO BAR "#; let expected = r#"Example blog post
FOO BAR"#; let res = html(input.to_owned()).unwrap(); assert_eq!(res, expected); } // https://github.com/getzola/zola/issues/1304 #[test] fn can_minify_multibyte_characters() { let input = r#" 俺が好きなのはキツネの…ケツねw ー丁寧なインタネット生活の人より "#; let expected = r#"俺が好きなのはキツネの…ケツねw ー丁寧なインタネット生活の人より"#; let res = html(input.to_owned()).unwrap(); assert_eq!(res, expected); } // https://github.com/getzola/zola/issues/1300 #[test] fn can_minify_and_preserve_whitespace_in_pre_elements() { let input = r#"fn main() {
println!("Hello, world!");
loop {
println!("Hello, world!");
}
}
"#;
let expected = r#"fn main() {
println!("Hello, world!");
loop {
println!("Hello, world!");
}
}
"#;
let res = html(input.to_owned()).unwrap();
assert_eq!(res, expected);
}
}