aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-08 10:51:45 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-08 10:51:45 +0200
commitbd0cb0d0395abb06941960938aacc3639148a96c (patch)
tree1c69873ccb947e7f81a652b653dc5d6d557d49e3 /tests
parent92b42e06f943338ce8b54b7e22cbb116ff598fa6 (diff)
downloadmarkdown-rs-bd0cb0d0395abb06941960938aacc3639148a96c.tar.gz
markdown-rs-bd0cb0d0395abb06941960938aacc3639148a96c.tar.bz2
markdown-rs-bd0cb0d0395abb06941960938aacc3639148a96c.zip
Add support for concrete constructs
Diffstat (limited to 'tests')
-rw-r--r--tests/block_quote.rs2
-rw-r--r--tests/code_fenced.rs22
-rw-r--r--tests/html_flow.rs13
3 files changed, 17 insertions, 20 deletions
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"),
// "<blockquote>\n<pre><code>a\n</code></pre>\n</blockquote>\n<blockquote>\n<p>b</p>\n</blockquote>",
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```"),
- // "<pre><code>&lt;\n &gt;\n</code></pre>",
- // "should support fenced code w/ grave accents"
- // );
+ assert_eq!(
+ micromark("```\n<\n >\n```"),
+ "<pre><code>&lt;\n &gt;\n</code></pre>",
+ "should support fenced code w/ grave accents"
+ );
- // To do: concrete constructs (code fenced).
- // assert_eq!(
- // micromark("~~~\n<\n >\n~~~"),
- // "<pre><code>&lt;\n &gt;\n</code></pre>",
- // "should support fenced code w/ tildes"
- // );
+ assert_eq!(
+ micromark("~~~\n<\n >\n~~~"),
+ "<pre><code>&lt;\n &gt;\n</code></pre>",
+ "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:
// <https://github.com/commonmark/commonmark-spec/pull/621>
- // To do: concrete constructs (html flow).
- // assert_eq!(
- // micromark_with_options("<!a\n \n \n>", DANGER),
- // "<!a\n \n \n>",
- // "should support blank lines in declarations"
- // );
+ assert_eq!(
+ micromark_with_options("<!a\n \n \n>", DANGER),
+ "<!a\n \n \n>",
+ "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("> <a>\n*bar*", DANGER),
// "<blockquote>\n<a>\n</blockquote>\n<p><em>bar</em></p>",