blob: 47ce902eff0e11c14584551d6d1bbeb4ae9426cd (
plain) (
tree)
|
|
extern crate micromark;
use micromark::micromark;
use pretty_assertions::assert_eq;
#[test]
fn bom() {
assert_eq!(micromark("\u{FEFF}"), "", "should ignore just a bom");
assert_eq!(
micromark("\u{FEFF}# hea\u{FEFF}ding"),
"<h1>hea\u{FEFF}ding</h1>",
"should ignore a bom"
);
}
|