minify-html/src/spec/entity/tests/encode.rs

8 lines
233 B
Rust
Raw Normal View History

2021-08-06 03:54:23 -04:00
use crate::spec::entity::encode::encode_ampersands;
#[test]
fn test_encode_ampersands_works_for_content() {
let out = encode_ampersands(b"1 is < than 2 <? </", false);
assert_eq!(out, b"1 is < than 2 &LT? &LT/".to_vec());
}