diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-06-15 13:08:21 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-06-15 13:08:21 +0200 |
commit | 1cd34ef54f7a62998eb87c41cd794d3a426d6324 (patch) | |
tree | c3ea564276f509aae8ee8dfce3c1682bb7c8f248 | |
parent | 8cfadc5850a1beaca19f872539acda39641b2d16 (diff) | |
download | markdown-rs-1cd34ef54f7a62998eb87c41cd794d3a426d6324.tar.gz markdown-rs-1cd34ef54f7a62998eb87c41cd794d3a426d6324.tar.bz2 markdown-rs-1cd34ef54f7a62998eb87c41cd794d3a426d6324.zip |
Add tests for boms
-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" + // ); +} |