diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/misc_bom.rs | 15 |
1 files changed, 15 insertions, 0 deletions
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"), + // "<h1>hea\u{FEFF}ding</h1>", + // "should ignore a bom" + // ); +} |