extern crate html_entities;
#[test]
fn by_name() {
use html_entities::decode_html_entities;
use std::result::Result;
let html = "&foobar<>";
let expected = "&foobar<>";
let decoded = decode_html_entities(html).unwrap();
assert_eq!(decoded, expected);
}
#[test]
fn by_dec() {
use html_entities::decode_html_entities;
use std::result::Result;
let html = "&foobar<>";
let expected = "&foobar<>";
let decoded = decode_html_entities(html).unwrap();
assert_eq!(decoded, expected);
}
#[test]
fn by_hex() {
use html_entities::decode_html_entities;
use std::result::Result;
let html = "&foobar<>";
let expected = "&foobar<>";
let decoded = decode_html_entities(html).unwrap();
assert_eq!(decoded, expected);
}