diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/attention.rs | 22 | ||||
-rw-r--r-- | tests/link_reference.rs | 22 | ||||
-rw-r--r-- | tests/link_resource.rs | 11 |
3 files changed, 25 insertions, 30 deletions
diff --git a/tests/attention.rs b/tests/attention.rs index 6ab173b..789d860 100644 --- a/tests/attention.rs +++ b/tests/attention.rs @@ -753,19 +753,17 @@ fn attention() { ); // Rule 17. - // To do: attention/link interplay. - // assert_eq!( - // micromark("*[bar*](/url)"), - // "<p>*<a href=\"/url\">bar*</a></p>", - // "should not mismatch inside links (1)" - // ); + assert_eq!( + micromark("*[bar*](/url)"), + "<p>*<a href=\"/url\">bar*</a></p>", + "should not mismatch inside links (1)" + ); - // To do: attention/link interplay. - // assert_eq!( - // micromark("_[bar_](/url)"), - // "<p>_<a href=\"/url\">bar_</a></p>", - // "should not mismatch inside links (1)" - // ); + assert_eq!( + micromark("_[bar_](/url)"), + "<p>_<a href=\"/url\">bar_</a></p>", + "should not mismatch inside links (1)" + ); assert_eq!( micromark_with_options("*<img src=\"foo\" title=\"*\"/>", DANGER), diff --git a/tests/link_reference.rs b/tests/link_reference.rs index b53b99b..30fb2b5 100644 --- a/tests/link_reference.rs +++ b/tests/link_reference.rs @@ -51,12 +51,11 @@ fn link_reference() { "should not support deep links in link references" ); - // To do: link/attention interplay. - // assert_eq!( - // micromark("[ref]: /uri\n\n*[foo*][ref]"), - // "<p>*<a href=\"/uri\">foo*</a></p>", - // "should prefer link references over emphasis (1)" - // ); + assert_eq!( + micromark("[ref]: /uri\n\n*[foo*][ref]"), + "<p>*<a href=\"/uri\">foo*</a></p>", + "should prefer link references over emphasis (1)" + ); assert_eq!( micromark("[ref]: /uri\n\n[foo *bar][ref]"), @@ -232,12 +231,11 @@ fn link_reference() { "should “support” an escaped shortcut reference" ); - // To do: link/attention interplay. - // assert_eq!( - // micromark("[foo*]: /url\n\n*[foo*]"), - // "<p>*<a href=\"/url\">foo*</a></p>", - // "should prefer shortcut references over emphasis" - // ); + assert_eq!( + micromark("[foo*]: /url\n\n*[foo*]"), + "<p>*<a href=\"/url\">foo*</a></p>", + "should prefer shortcut references over emphasis" + ); assert_eq!( micromark("[foo]: /url1\n[bar]: /url2\n\n[foo][bar]"), diff --git a/tests/link_resource.rs b/tests/link_resource.rs index e4037a2..31e4b81 100644 --- a/tests/link_resource.rs +++ b/tests/link_resource.rs @@ -261,12 +261,11 @@ fn link_resource() { "should not support links in links (3)" ); - // To do: link/attention interplay. - // assert_eq!( - // micromark("*[foo*](/uri)"), - // "<p>*<a href=\"/uri\">foo*</a></p>", - // "should prefer links over emphasis (1)" - // ); + assert_eq!( + micromark("*[foo*](/uri)"), + "<p>*<a href=\"/uri\">foo*</a></p>", + "should prefer links over emphasis (1)" + ); assert_eq!( micromark("[foo *bar](baz*)"), |