extern crate micromark; use micromark::micromark; use pretty_assertions::assert_eq; #[test] fn bom() -> Result<(), String> { assert_eq!(micromark("\u{FEFF}"), "", "should ignore just a bom"); assert_eq!( micromark("\u{FEFF}# hea\u{FEFF}ding"), "

hea\u{FEFF}ding

", "should ignore a bom" ); Ok(()) }