From 182467c1d393dee2081ff80f1c049cb145f23123 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Mon, 20 Jun 2022 18:53:38 +0200 Subject: Add support for BOM --- tests/misc_bom.rs | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'tests/misc_bom.rs') 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"), - // "

hea\u{FEFF}ding

", - // "should ignore a bom" - // ); + assert_eq!( + micromark("\u{FEFF}# hea\u{FEFF}ding"), + "

hea\u{FEFF}ding

", + "should ignore a bom" + ); } -- cgit