diff options
Diffstat (limited to '')
-rw-r--r-- | tests/hard_break_trailing.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/hard_break_trailing.rs b/tests/hard_break_trailing.rs index f977657..b5577fd 100644 --- a/tests/hard_break_trailing.rs +++ b/tests/hard_break_trailing.rs @@ -3,7 +3,7 @@ use micromark::{micromark, micromark_with_options, Constructs, Options}; use pretty_assertions::assert_eq; #[test] -fn hard_break_trailing() { +fn hard_break_trailing() -> Result<(), String> { assert_eq!( micromark("foo \nbaz"), "<p>foo<br />\nbaz</p>", @@ -116,8 +116,10 @@ fn hard_break_trailing() { }, ..Options::default() } - ), + )?, "<p>a\nb</p>", "should support turning off hard break (trailing)" ); + + Ok(()) } |