diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-06-20 18:53:38 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-06-20 18:53:38 +0200 |
commit | 182467c1d393dee2081ff80f1c049cb145f23123 (patch) | |
tree | 9ce529c815faab2db1f96b0820a78049b7633a8a /tests/misc_bom.rs | |
parent | ef5f9a97493fe4a616b49a744d5a571a99ead8e9 (diff) | |
download | markdown-rs-182467c1d393dee2081ff80f1c049cb145f23123.tar.gz markdown-rs-182467c1d393dee2081ff80f1c049cb145f23123.tar.bz2 markdown-rs-182467c1d393dee2081ff80f1c049cb145f23123.zip |
Add support for BOM
Diffstat (limited to '')
-rw-r--r-- | tests/misc_bom.rs | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/tests/misc_bom.rs b/tests/misc_bom.rs index 9805616..44f661e 100644 --- a/tests/misc_bom.rs +++ b/tests/misc_bom.rs @@ -1,15 +1,13 @@ extern crate micromark; -// use micromark::micromark; +use micromark::micromark; #[test] fn bom() { - // // To do: BOM. - // assert_eq!(micromark("\u{FEFF}"), "", "should ignore just a bom"); + assert_eq!(micromark("\u{FEFF}"), "", "should ignore just a bom"); - // // To do: BOM. - // assert_eq!( - // micromark("\u{FEFF}# hea\u{FEFF}ding"), - // "<h1>hea\u{FEFF}ding</h1>", - // "should ignore a bom" - // ); + assert_eq!( + micromark("\u{FEFF}# hea\u{FEFF}ding"), + "<h1>hea\u{FEFF}ding</h1>", + "should ignore a bom" + ); } |