From 1cd34ef54f7a62998eb87c41cd794d3a426d6324 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Wed, 15 Jun 2022 13:08:21 +0200 Subject: Add tests for boms --- tests/misc_bom.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/misc_bom.rs (limited to 'tests') diff --git a/tests/misc_bom.rs b/tests/misc_bom.rs new file mode 100644 index 0000000..9805616 --- /dev/null +++ b/tests/misc_bom.rs @@ -0,0 +1,15 @@ +extern crate micromark; +// use micromark::micromark; + +#[test] +fn bom() { + // // To do: 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" + // ); +} -- cgit