aboutsummaryrefslogtreecommitdiffstats
path: root/tests/heading_atx.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/heading_atx.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/heading_atx.rs b/tests/heading_atx.rs
index 715b17a..1bd437c 100644
--- a/tests/heading_atx.rs
+++ b/tests/heading_atx.rs
@@ -3,7 +3,7 @@ use micromark::{micromark, micromark_with_options, Constructs, Options};
use pretty_assertions::assert_eq;
#[test]
-fn heading_atx() {
+fn heading_atx() -> Result<(), String> {
assert_eq!(
micromark("# foo"),
"<h1>foo</h1>",
@@ -212,8 +212,10 @@ fn heading_atx() {
},
..Options::default()
}
- ),
+ )?,
"<p># a</p>",
"should support turning off heading (atx)"
);
+
+ Ok(())
}