diff options
Diffstat (limited to '')
-rw-r--r-- | tests/html_flow.rs | 84 |
1 files changed, 40 insertions, 44 deletions
diff --git a/tests/html_flow.rs b/tests/html_flow.rs index 6f32133..d35a570 100644 --- a/tests/html_flow.rs +++ b/tests/html_flow.rs @@ -244,12 +244,11 @@ fn html_flow_2_comment() { "should end a comment at four dashes (`---->`)" ); - // To do: html (flow) whitespace. - // assert_eq!( - // micromark_with_options(" <!-- foo -->", DANGER), - // " <!-- foo -->", - // "should support comments w/ indent" - // ); + assert_eq!( + micromark_with_options(" <!-- foo -->", DANGER), + " <!-- foo -->", + "should support comments w/ indent" + ); assert_eq!( micromark_with_options(" <!-- foo -->", DANGER), @@ -481,12 +480,11 @@ okay.", "should support html of type 6 (1)" ); - // To do: html (flow) whitespace. - // assert_eq!( - // micromark_with_options(" <div>\n *hello*\n <foo><a>", DANGER), - // " <div>\n *hello*\n <foo><a>", - // "should support html of type 6 (2)" - // ); + assert_eq!( + micromark_with_options(" <div>\n *hello*\n <foo><a>", DANGER), + " <div>\n *hello*\n <foo><a>", + "should support html of type 6 (2)" + ); assert_eq!( micromark_with_options("</div>\n*foo*", DANGER), @@ -566,12 +564,11 @@ okay.", "should support basic tags w/o ending in containers (2)" ); - // To do: html (flow) whitespace. - // assert_eq!( - // micromark_with_options(" <div>", DANGER), - // " <div>", - // "should support basic tags w/ indent" - // ); + assert_eq!( + micromark_with_options(" <div>", DANGER), + " <div>", + "should support basic tags w/ indent" + ); assert_eq!( micromark_with_options(" <div>", DANGER), @@ -612,32 +609,31 @@ okay.", "should support blank lines between adjacent html" ); - // To do: html (flow) whitespace. - // assert_eq!( - // micromark_with_options( - // "<table> - - // <tr> - - // <td> - // Hi - // </td> - - // </tr> - - // </table>", - // DANGER - // ), - // "<table> - // <tr> - // <pre><code><td> - // Hi - // </td> - // </code></pre> - // </tr> - // </table>", - // "should not support indented, blank-line delimited, adjacent html" - // ); + assert_eq!( + micromark_with_options( + "<table> + + <tr> + + <td> + Hi + </td> + + </tr> + +</table>", + DANGER + ), + "<table> + <tr> +<pre><code><td> + Hi +</td> +</code></pre> + </tr> +</table>", + "should not support indented, blank-line delimited, adjacent html" + ); assert_eq!( micromark_with_options("</1>", DANGER), |