From bd0cb0d0395abb06941960938aacc3639148a96c Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Fri, 8 Jul 2022 10:51:45 +0200 Subject: Add support for concrete constructs --- tests/block_quote.rs | 2 +- tests/code_fenced.rs | 22 ++++++++++------------ tests/html_flow.rs | 13 ++++++------- 3 files changed, 17 insertions(+), 20 deletions(-) (limited to 'tests') diff --git a/tests/block_quote.rs b/tests/block_quote.rs index 908c724..02256e1 100644 --- a/tests/block_quote.rs +++ b/tests/block_quote.rs @@ -170,7 +170,7 @@ fn block_quote() { // "should not support interrupting many block quotes w/ paragraphs (2)" // ); - // To do: block quote (some bug). + // To do: block quote (exit flow if container exits). // assert_eq!( // micromark("> a\n\n> b"), // "
\n
a\n
\n
\n
\n

b

\n
", diff --git a/tests/code_fenced.rs b/tests/code_fenced.rs index d970c94..84d0d83 100644 --- a/tests/code_fenced.rs +++ b/tests/code_fenced.rs @@ -3,19 +3,17 @@ use micromark::micromark; #[test] fn code_fenced() { - // To do: concrete constructs (code fenced). - // assert_eq!( - // micromark("```\n<\n >\n```"), - // "
<\n >\n
", - // "should support fenced code w/ grave accents" - // ); + assert_eq!( + micromark("```\n<\n >\n```"), + "
<\n >\n
", + "should support fenced code w/ grave accents" + ); - // To do: concrete constructs (code fenced). - // assert_eq!( - // micromark("~~~\n<\n >\n~~~"), - // "
<\n >\n
", - // "should support fenced code w/ tildes" - // ); + assert_eq!( + micromark("~~~\n<\n >\n~~~"), + "
<\n >\n
", + "should support fenced code w/ tildes" + ); assert_eq!( micromark("``\nfoo\n``"), diff --git a/tests/html_flow.rs b/tests/html_flow.rs index e53b47e..796ced4 100644 --- a/tests/html_flow.rs +++ b/tests/html_flow.rs @@ -366,12 +366,11 @@ fn html_flow_4_declaration() { // Note about the lower letter: // - // To do: concrete constructs (html flow). - // assert_eq!( - // micromark_with_options("", DANGER), - // "", - // "should support blank lines in declarations" - // ); + assert_eq!( + micromark_with_options("", DANGER), + "", + "should support blank lines in declarations" + ); // To do: blockquote (lazy). // assert_eq!( @@ -1020,7 +1019,7 @@ fn html_flow_7_complete() { "should not support blank lines in complete" ); - // To do: blockquote (some bug). + // To do: containers: close flow when closing container. // assert_eq!( // micromark_with_options("> \n*bar*", DANGER), // "
\n\n
\n

bar

", -- cgit