aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/misc_bom.rs16
-rw-r--r--tests/misc_zero.rs2
2 files changed, 9 insertions, 9 deletions
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"),
- // "<h1>hea\u{FEFF}ding</h1>",
- // "should ignore a bom"
- // );
+ assert_eq!(
+ micromark("\u{FEFF}# hea\u{FEFF}ding"),
+ "<h1>hea\u{FEFF}ding</h1>",
+ "should ignore a bom"
+ );
}
diff --git a/tests/misc_zero.rs b/tests/misc_zero.rs
index 946a3e2..47aa8ed 100644
--- a/tests/misc_zero.rs
+++ b/tests/misc_zero.rs
@@ -3,6 +3,8 @@ use micromark::micromark;
#[test]
fn zero() {
+ assert_eq!(micromark(""), "", "should support no markdown");
+
assert_eq!(
micromark("asd\0asd"),
"<p>asd�asd</p>",