From 1d92666865b35341e076efbefddf6e73b5e1542e Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Wed, 7 Sep 2022 15:53:06 +0200 Subject: Add support for recoverable syntax errors --- tests/text.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/text.rs') diff --git a/tests/text.rs b/tests/text.rs index 584f463..a2ef1fb 100644 --- a/tests/text.rs +++ b/tests/text.rs @@ -3,7 +3,7 @@ use micromark::micromark; use pretty_assertions::assert_eq; #[test] -fn text() { +fn text() -> Result<(), String> { assert_eq!( micromark("hello $.;'there"), "

hello $.;'there

", @@ -21,4 +21,6 @@ fn text() { "

Multiple spaces

", "should preserve internal spaces verbatim" ); + + Ok(()) } -- cgit