aboutsummaryrefslogtreecommitdiffstats
path: root/tests/misc_bom.rs
blob: 1967ae337a3789b12ef0697e932236aadda97088 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
use markdown::to_html;
use pretty_assertions::assert_eq;

#[test]
fn bom() {
    assert_eq!(to_html("\u{FEFF}"), "", "should ignore just a bom");

    assert_eq!(
        to_html("\u{FEFF}# hea\u{FEFF}ding"),
        "<h1>hea\u{FEFF}ding</h1>",
        "should ignore a bom"
    );
}