aboutsummaryrefslogblamecommitdiffstats
path: root/tests/misc_bom.rs
blob: 44f661e5f87f03e39c3eb5fd1d869038332586b9 (plain) (tree)
1
2
3
4
5
6
7
                       
                         


          
                                                                      
 




                                               
 
extern crate micromark;
use micromark::micromark;

#[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"
    );
}