aboutsummaryrefslogtreecommitdiffstats
path: root/tests/misc_bom.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-06-15 13:08:21 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-06-15 13:08:21 +0200
commit1cd34ef54f7a62998eb87c41cd794d3a426d6324 (patch)
treec3ea564276f509aae8ee8dfce3c1682bb7c8f248 /tests/misc_bom.rs
parent8cfadc5850a1beaca19f872539acda39641b2d16 (diff)
downloadmarkdown-rs-1cd34ef54f7a62998eb87c41cd794d3a426d6324.tar.gz
markdown-rs-1cd34ef54f7a62998eb87c41cd794d3a426d6324.tar.bz2
markdown-rs-1cd34ef54f7a62998eb87c41cd794d3a426d6324.zip
Add tests for boms
Diffstat (limited to 'tests/misc_bom.rs')
-rw-r--r--tests/misc_bom.rs15
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"
+ // );
+}