From 7883e42c07acbccc16a2f5de5d1b98de364cc1ad Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Wed, 15 Jun 2022 13:28:09 +0200 Subject: Update to enable some tests for added constructs --- readme.md | 2 ++ tests/heading_atx.rs | 12 ++++++------ tests/html_flow.rs | 15 +++++++-------- tests/lib.rs | 8 -------- tests/misc_dangerous_protocol.rs | 2 +- tests/thematic_break.rs | 13 ++++++------- 6 files changed, 22 insertions(+), 30 deletions(-) delete mode 100644 tests/lib.rs diff --git a/readme.md b/readme.md index 75c2ee6..b7fcbfe 100644 --- a/readme.md +++ b/readme.md @@ -68,6 +68,7 @@ cargo doc --document-private-items ### Small things +- [ ] (1) text in heading - [ ] (1) Add docs to subtokenize - [ ] (1) Add module docs to content - [ ] (1) Add module docs to parser @@ -76,6 +77,7 @@ cargo doc --document-private-items - [ ] (1) Parse initial and final whitespace of paragraphs (in text) - [ ] (3) Clean compiler - [ ] (1) Use preferred line ending style in markdown +- [ ] (1) Add tests for `default-line-ending`, `line-ending` - [ ] (1) Handle BOM at start - [ ] (1) Make sure tabs are handled properly and that positional info is perfect - [ ] (1) Make sure crlf/cr/lf are working perfectly diff --git a/tests/heading_atx.rs b/tests/heading_atx.rs index 8d4acfd..20da860 100644 --- a/tests/heading_atx.rs +++ b/tests/heading_atx.rs @@ -56,13 +56,13 @@ fn heading_atx() { "should not support a heading for a number sign not followed by whitespace (2)" ); - // To do: phrasing. - // assert_eq!( - // micromark("\\## foo"), - // "

## foo

", - // "should not support a heading for an escaped number sign" - // ); + assert_eq!( + micromark("\\## foo"), + "

## foo

", + "should not support a heading for an escaped number sign" + ); + // To do: attention. // assert_eq!( // micromark("# foo *bar* \\*baz\\*"), // "

foo bar *baz*

", diff --git a/tests/html_flow.rs b/tests/html_flow.rs index 6445af3..140e11d 100644 --- a/tests/html_flow.rs +++ b/tests/html_flow.rs @@ -97,7 +97,7 @@ p {color:blue;} "should support raw tags w/o ending" ); - // To do: phrasing. + // To do: attention. // assert_eq!( // micromark_with_options("\n*foo*", DANGER), // "\n

foo

", @@ -128,7 +128,7 @@ p {color:blue;} "should not support an eof after a self-closing slash" ); - // To do: phrasing. + // To do: attention. // assert_eq!( // micromark_with_options("