aboutsummaryrefslogtreecommitdiffstats
path: root/tests/character_reference.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/character_reference.rs24
1 files changed, 11 insertions, 13 deletions
diff --git a/tests/character_reference.rs b/tests/character_reference.rs
index 136ce17..3d2111e 100644
--- a/tests/character_reference.rs
+++ b/tests/character_reference.rs
@@ -55,14 +55,13 @@ fn character_reference() {
"should not care about character references in html"
);
- // To do: link (resource).
- // assert_eq!(
- // micromark("[foo](/föö \"föö\")"),
- // "<p><a href=\"/f%C3%B6%C3%B6\" title=\"föö\">foo</a></p>",
- // "should support character references in resource URLs and titles"
- // );
+ assert_eq!(
+ micromark("[foo](/f&ouml;&ouml; \"f&ouml;&ouml;\")"),
+ "<p><a href=\"/f%C3%B6%C3%B6\" title=\"föö\">foo</a></p>",
+ "should support character references in resource URLs and titles"
+ );
- // To do: link (resource).
+ // To do: link (reference).
// assert_eq!(
// micromark("[foo]: /f&ouml;&ouml; \"f&ouml;&ouml;\"\n\n[foo]"),
// "<p><a href=\"/f%C3%B6%C3%B6\" title=\"föö\">foo</a></p>",
@@ -101,12 +100,11 @@ fn character_reference() {
// "should not support character references as construct markers (2)"
// );
- // To do: link (resource).
- // assert_eq!(
- // micromark("[a](url &quot;tit&quot;)"),
- // "<p>[a](url &quot;tit&quot;)</p>",
- // "should not support character references as construct markers (3)"
- // );
+ assert_eq!(
+ micromark("[a](url &quot;tit&quot;)"),
+ "<p>[a](url &quot;tit&quot;)</p>",
+ "should not support character references as construct markers (3)"
+ );
assert_eq!(
micromark("foo&#10;&#10;bar"),