From 769963fd3fe9e7027915fc0ddfc2b0e881aa6952 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Mon, 20 Jun 2022 18:30:34 +0200 Subject: Add some more enabled tests --- tests/html_flow.rs | 126 ++++++++++++++++++++++++----------------------------- 1 file changed, 58 insertions(+), 68 deletions(-) (limited to 'tests') diff --git a/tests/html_flow.rs b/tests/html_flow.rs index 140e11d..53105a6 100644 --- a/tests/html_flow.rs +++ b/tests/html_flow.rs @@ -194,7 +194,7 @@ fn html_flow_2_comment() { "should support comments (type 2)" ); - // To do: phrasing. + // To do: attention. // assert_eq!( // micromark_with_options("*bar*\n*baz*", DANGER), // "*bar*\n

baz

", @@ -454,7 +454,7 @@ fn html_flow_5_cdata() { #[test] fn html_flow_6_basic() { - // To do: phrasing, paragraphs, etc. + // To do: attention. // assert_eq!( // micromark_with_options( // "
\n
\n**Hello**,\n\n_world_.\n
\n
", @@ -464,7 +464,6 @@ fn html_flow_6_basic() { // "should support html (basic)" // ); - // To do: paragraphs. assert_eq!( micromark_with_options( " @@ -501,7 +500,7 @@ okay.", "should support html starting w/ a closing tag" ); - // To do: phrasing. + // To do: attention. // assert_eq!( // micromark_with_options("
\n\n*Markdown*\n\n
", DANGER), // "
\n

Markdown

\n
", @@ -520,7 +519,7 @@ okay.", "should support html w/ line endings (2)" ); - // To do: phrasing. + // To do: attention. // assert_eq!( // micromark_with_options("
\n*foo*\n\n*bar*", DANGER), // "
\n*foo*\n

bar

", @@ -601,7 +600,7 @@ okay.", "should require a blank line to end" ); - // To do: phrasing. + // To do: attention. // assert_eq!( // micromark_with_options("
\n\n*Emphasized* text.\n\n
", DANGER), // "
\n

Emphasized text.

\n
", @@ -679,7 +678,7 @@ okay.", "should not support an eof directly after a self-closing slash" ); - // To do: phrasing. + // To do: attention. // assert_eq!( // micromark_with_options("
<div/\nasd

", @@ -769,14 +768,14 @@ fn html_flow_7_complete() { "should support closing tags" ); - // To do: phrasing. + // To do: attention. // assert_eq!( // micromark_with_options("\n\n*foo*\n\n", DANGER), // "\n

foo

\n
", // "should support interleaving" // ); - // To do: html (text). + // To do: attention. // assert_eq!( // micromark_with_options("*foo*", DANGER), // "

foo

", @@ -827,7 +826,7 @@ fn html_flow_7_complete() { "should not support an eof directly after a self-closing slash" ); - // To do: phrasing. + // To do: attention. // assert_eq!( // micromark_with_options("<x/\nasd

", @@ -846,19 +845,17 @@ fn html_flow_7_complete() { "should support a line ending after a self-closing tag" ); - // To do: html (text). - // assert_eq!( - // micromark_with_options("a", DANGER), - // "

a

", - // "should not support another character after a self-closing tag" - // ); + assert_eq!( + micromark_with_options("a", DANGER), + "

a

", + "should not support another character after a self-closing tag" + ); - // To do: html (text). - // assert_eq!( - // micromark_with_options("a", DANGER), - // "

a

", - // "should not support another character after an opening tag" - // ); + assert_eq!( + micromark_with_options("a", DANGER), + "

a

", + "should not support another character after an opening tag" + ); assert_eq!( micromark_with_options("", DANGER), @@ -866,32 +863,29 @@ fn html_flow_7_complete() { "should support boolean attributes in a complete tag" ); - // To do: html (text). - // assert_eq!( - // micromark_with_options("", DANGER), - // "

", - // "should not support a line ending before an attribute name" - // ); + assert_eq!( + micromark_with_options("", DANGER), + "

", + "should not support a line ending before an attribute name" + ); - // To do: html (text). - // assert_eq!( - // micromark_with_options("", DANGER), - // "

", - // "should not support a line ending w/ whitespace before an attribute name" - // ); + assert_eq!( + micromark_with_options("", DANGER), + "

", + "should not support a line ending w/ whitespace before an attribute name" + ); assert_eq!( - micromark_with_options("", DANGER), - "

<x

\n

y>

", - "should not support a line ending w/ whitespace and another line ending before an attribute name" - ); + micromark_with_options("", DANGER), + "

<x

\n

y>

", + "should not support a line ending w/ whitespace and another line ending before an attribute name" + ); - // To do: html (text). - // assert_eq!( - // micromark_with_options("", DANGER), - // "

", - // "should not support a line ending between attribute names" - // ); + assert_eq!( + micromark_with_options("", DANGER), + "

", + "should not support a line ending between attribute names" + ); assert_eq!( micromark_with_options("", DANGER), @@ -995,26 +989,23 @@ fn html_flow_7_complete() { "should support an empty single quoted attribute value" ); - // To do: html (text). - // assert_eq!( - // micromark_with_options("", DANGER), - // "

", - // "should not support a line ending in a double quoted attribute value" - // ); + assert_eq!( + micromark_with_options("", DANGER), + "

", + "should not support a line ending in a double quoted attribute value" + ); - // To do: html (text). - // assert_eq!( - // micromark_with_options("", DANGER), - // "

", - // "should not support a line ending in a single quoted attribute value" - // ); + assert_eq!( + micromark_with_options("", DANGER), + "

", + "should not support a line ending in a single quoted attribute value" + ); - // To do: html (text). - // assert_eq!( - // micromark_with_options("", DANGER), - // "

", - // "should not support a line ending in/after an unquoted attribute value" - // ); + assert_eq!( + micromark_with_options("", DANGER), + "

", + "should not support a line ending in/after an unquoted attribute value" + ); assert_eq!( micromark_with_options("", DANGER), @@ -1022,12 +1013,11 @@ fn html_flow_7_complete() { "should not support a double quote in/after an unquoted attribute value" ); - // To do: html (text). - // assert_eq!( - // micromark_with_options("", DANGER), - // "

<w x=y\"z>

", - // "should not support a single quote in/after an unquoted attribute value" - // ); + assert_eq!( + micromark_with_options("", DANGER), + "

<w x=y'z>

", + "should not support a single quote in/after an unquoted attribute value" + ); assert_eq!( micromark_with_options("", DANGER), -- cgit