From ac3cfc8253e3d3761c65b3c9db5c990f5b07f161 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Fri, 8 Jul 2022 17:18:13 +0200 Subject: Add improved container enter/exit mechanism --- tests/code_fenced.rs | 8 ++++---- tests/html_flow.rs | 11 +++++------ 2 files changed, 9 insertions(+), 10 deletions(-) (limited to 'tests') diff --git a/tests/code_fenced.rs b/tests/code_fenced.rs index 29ef62a..780a78f 100644 --- a/tests/code_fenced.rs +++ b/tests/code_fenced.rs @@ -57,7 +57,7 @@ fn code_fenced() { "should support an eof somewhere in content" ); - // To do: blockquote (some bug). + // To do: blockquote (fix exits, fix compiler). // assert_eq!( // micromark("> ```\n> aaa\n\nbbb"), // "
\n
aaa\n
\n
\n

bbb

", @@ -227,14 +227,14 @@ fn code_fenced() { "should not support a closing sequence w/ too much indent, regardless of opening sequence (1)" ); - // To do: blockquote (some bug). + // To do: blockquote (fix exits, fix compiler). // assert_eq!( // micromark("> ```\n>\n>\n>\n\na"), // "
\n
\n\n\n
\n
\n

a

", // "should not support a closing sequence w/ too much indent, regardless of opening sequence (2)" // ); - // To do: blockquote (some bug, perhaps compiler). + // To do: blockquote (fix exits, fix compiler). // assert_eq!( // micromark("> ```a\nb"), // "
\n
\n
\n

b

", @@ -247,7 +247,7 @@ fn code_fenced() { "should not support lazyness (2)" ); - // To do: blockquote (some bug, also compiler). + // To do: blockquote (fix exits, fix compiler). // assert_eq!( // micromark("> ```a\n```"), // "
\n
\n
\n
\n", diff --git a/tests/html_flow.rs b/tests/html_flow.rs index 71e7bbe..757f2f3 100644 --- a/tests/html_flow.rs +++ b/tests/html_flow.rs @@ -552,12 +552,11 @@ okay.", "should include everything ’till a blank line" ); - // To do: blockquote (some bug). - // assert_eq!( - // micromark_with_options(">
\n> foo\n\nbar", DANGER), - // "
\n
\nfoo\n
\n

bar

", - // "should support basic tags w/o ending in containers (1)" - // ); + assert_eq!( + micromark_with_options(">
\n> foo\n\nbar", DANGER), + "
\n
\nfoo\n
\n

bar

", + "should support basic tags w/o ending in containers (1)" + ); // To do: list. // assert_eq!( -- cgit