aboutsummaryrefslogtreecommitdiffstats
path: root/tests/commonmark.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-15 19:44:19 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-15 19:44:19 +0200
commit2ae00fbbf2f88da9163b512b1f1205e18499ab9e (patch)
tree1dd32999327eb29864db0402f4c36213173d8066 /tests/commonmark.rs
parentb6342221eb3cacda6e893d7d35bf291944c664d9 (diff)
downloadmarkdown-rs-2ae00fbbf2f88da9163b512b1f1205e18499ab9e.tar.gz
markdown-rs-2ae00fbbf2f88da9163b512b1f1205e18499ab9e.tar.bz2
markdown-rs-2ae00fbbf2f88da9163b512b1f1205e18499ab9e.zip
Fix some final eol bugs
Diffstat (limited to 'tests/commonmark.rs')
-rw-r--r--tests/commonmark.rs103
1 files changed, 49 insertions, 54 deletions
diff --git a/tests/commonmark.rs b/tests/commonmark.rs
index cec6116..1843a51 100644
--- a/tests/commonmark.rs
+++ b/tests/commonmark.rs
@@ -2623,18 +2623,17 @@ bar
r###"Link reference definitions (216)"###
);
- // To do: eol after definition in otherwise empty block quote.
-// assert_eq!(
-// micromark_with_options(r###"[foo]
+ assert_eq!(
+ micromark_with_options(r###"[foo]
-// > [foo]: /url
-// "###, DANGER),
-// r###"<p><a href="/url">foo</a></p>
-// <blockquote>
-// </blockquote>
-// "###,
-// r###"Link reference definitions (217)"###
-// );
+> [foo]: /url
+"###, DANGER),
+ r###"<p><a href="/url">foo</a></p>
+<blockquote>
+</blockquote>
+"###,
+ r###"Link reference definitions (217)"###
+);
assert_eq!(
micromark_with_options(r###"aaa
@@ -2896,40 +2895,37 @@ foo
// r###"Block quotes (237)"###
// );
- // To do: some eol in empty block quote bug.
- // assert_eq!(
- // micromark_with_options(r###">
- // "###, DANGER),
- // r###"<blockquote>
- // </blockquote>
- // "###,
- // r###"Block quotes (238)"###
- // );
+ assert_eq!(
+ micromark_with_options(r###">
+"###, DANGER),
+ r###"<blockquote>
+</blockquote>
+"###,
+ r###"Block quotes (238)"###
+);
- // To do: some eol in empty block quote bug.
- // assert_eq!(
- // micromark_with_options(r###">
- // >
- // >
- // "###, DANGER),
- // r###"<blockquote>
- // </blockquote>
- // "###,
- // r###"Block quotes (239)"###
- // );
+ assert_eq!(
+ micromark_with_options(r###">
+>
+>
+"###, DANGER),
+ r###"<blockquote>
+</blockquote>
+"###,
+ r###"Block quotes (239)"###
+);
- // To do: some eol in empty block quote bug.
- // assert_eq!(
- // micromark_with_options(r###">
- // > foo
- // >
- // "###, DANGER),
- // r###"<blockquote>
- // <p>foo</p>
- // </blockquote>
- // "###,
- // r###"Block quotes (240)"###
- // );
+ assert_eq!(
+ micromark_with_options(r###">
+> foo
+>
+"###, DANGER),
+ r###"<blockquote>
+<p>foo</p>
+</blockquote>
+"###,
+ r###"Block quotes (240)"###
+);
assert_eq!(
micromark_with_options(r###"> foo
@@ -2999,7 +2995,7 @@ bar</p>
r###"Block quotes (245)"###
);
- // To do: some eol in empty block quote bug.
+ // To do: some lazy bug.
// assert_eq!(
// micromark_with_options(r###"> bar
// baz
@@ -3564,16 +3560,15 @@ bar
r###"List items (282)"###
);
- // To do: some bug w/ line endings and empty items.
- // assert_eq!(
- // micromark_with_options(r###"*
- // "###, DANGER),
- // r###"<ul>
- // <li></li>
- // </ul>
- // "###,
- // r###"List items (283)"###
- // );
+ assert_eq!(
+ micromark_with_options(r###"*
+"###, DANGER),
+ r###"<ul>
+<li></li>
+</ul>
+"###,
+ r###"List items (283)"###
+);
assert_eq!(
micromark_with_options(r###"foo