aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/link_reference.rs17
1 files changed, 11 insertions, 6 deletions
diff --git a/tests/link_reference.rs b/tests/link_reference.rs
index cac1b39..0904995 100644
--- a/tests/link_reference.rs
+++ b/tests/link_reference.rs
@@ -256,12 +256,17 @@ fn link_reference() {
"should prefer collapsed references over shortcut references"
);
- // To do: some bug!
- // assert_eq!(
- // micromark("[foo]: /url1\n\n[foo]()"),
- // "<p><a href=\"\">foo</a></p>",
- // "should prefer resources over shortcut references"
- // );
+ assert_eq!(
+ micromark("[foo]: /url\n\n[foo]()"),
+ "<p><a href=\"\">foo</a></p>",
+ "should prefer resources over shortcut references (1)"
+ );
+
+ assert_eq!(
+ micromark("[foo]: /url \"title\"\n\n[foo]()"),
+ "<p><a href=\"\">foo</a></p>",
+ "should prefer resources over shortcut references (2)"
+ );
assert_eq!(
micromark("[foo]: /url1\n\n[foo](not a link)"),