aboutsummaryrefslogtreecommitdiffstats
path: root/tests/code_fenced.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-08 18:07:59 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-08 18:07:59 +0200
commit421c4886ac592ea55fb36ea10c9c8a6e3df8a91c (patch)
treedc878a1b28dba400e03feadc7197853a5a3586e6 /tests/code_fenced.rs
parent3e4ff94f5842a9383c3a3710b885f1cd3cbf2c07 (diff)
downloadmarkdown-rs-421c4886ac592ea55fb36ea10c9c8a6e3df8a91c.tar.gz
markdown-rs-421c4886ac592ea55fb36ea10c9c8a6e3df8a91c.tar.bz2
markdown-rs-421c4886ac592ea55fb36ea10c9c8a6e3df8a91c.zip
Fix bug around forcibly closed flow exits
Diffstat (limited to '')
-rw-r--r--tests/code_fenced.rs35
1 files changed, 16 insertions, 19 deletions
diff --git a/tests/code_fenced.rs b/tests/code_fenced.rs
index 780a78f..a777f9f 100644
--- a/tests/code_fenced.rs
+++ b/tests/code_fenced.rs
@@ -57,12 +57,11 @@ fn code_fenced() {
"should support an eof somewhere in content"
);
- // To do: blockquote (fix exits, fix compiler).
- // assert_eq!(
- // micromark("> ```\n> aaa\n\nbbb"),
- // "<blockquote>\n<pre><code>aaa\n</code></pre>\n</blockquote>\n<p>bbb</p>",
- // "should support no closing sequence in a block quote"
- // );
+ assert_eq!(
+ micromark("> ```\n> aaa\n\nbbb"),
+ "<blockquote>\n<pre><code>aaa\n</code></pre>\n</blockquote>\n<p>bbb</p>",
+ "should support no closing sequence in a block quote"
+ );
assert_eq!(
micromark("```\n\n \n```"),
@@ -227,19 +226,18 @@ fn code_fenced() {
"should not support a closing sequence w/ too much indent, regardless of opening sequence (1)"
);
- // To do: blockquote (fix exits, fix compiler).
+ // To do: blockquote (fix compiler).
// assert_eq!(
// micromark("> ```\n>\n>\n>\n\na"),
// "<blockquote>\n<pre><code>\n\n\n</code></pre>\n</blockquote>\n<p>a</p>",
// "should not support a closing sequence w/ too much indent, regardless of opening sequence (2)"
// );
- // To do: blockquote (fix exits, fix compiler).
- // assert_eq!(
- // micromark("> ```a\nb"),
- // "<blockquote>\n<pre><code class=\"language-a\"></code></pre>\n</blockquote>\n<p>b</p>",
- // "should not support lazyness (1)"
- // );
+ assert_eq!(
+ micromark("> ```a\nb"),
+ "<blockquote>\n<pre><code class=\"language-a\"></code></pre>\n</blockquote>\n<p>b</p>",
+ "should not support lazyness (1)"
+ );
assert_eq!(
micromark("> a\n```b"),
@@ -247,12 +245,11 @@ fn code_fenced() {
"should not support lazyness (2)"
);
- // To do: blockquote (fix exits, fix compiler).
- // assert_eq!(
- // micromark("> ```a\n```"),
- // "<blockquote>\n<pre><code class=\"language-a\"></code></pre>\n</blockquote>\n<pre><code></code></pre>\n",
- // "should not support lazyness (3)"
- // );
+ assert_eq!(
+ micromark("> ```a\n```"),
+ "<blockquote>\n<pre><code class=\"language-a\"></code></pre>\n</blockquote>\n<pre><code></code></pre>\n",
+ "should not support lazyness (3)"
+ );
// To do: turning things off.
// assert_eq!(