Permalink
Browse files

Add more tests around the v1.3.1 conformance fixes

  • Loading branch information...
1 parent 96c2f93 commit 7ff301763d2b13013faa2ee465f92f4619b12bed Matt Sanford committed Jan 6, 2011
Showing with 12 additions and 0 deletions.
  1. +8 −0 autolink.yml
  2. +4 −0 extract.yml
View
@@ -416,6 +416,14 @@ tests:
text: "Go to http://example.com/a+ or http://example.com/a-"
expected: "Go to <a href=\"http://example.com/a+\">http://example.com/a+</a> or <a href=\"http://example.com/a-\">http://example.com/a-</a>"
+ - description: "Autolink URL should autolink a URL with a - or + at the end of the path and query parameters"
+ text: "Go to http://example.com/a+?this=that or http://example.com/a-?this=that"
+ expected: "Go to <a href=\"http://example.com/a+?this=that\">http://example.com/a+?this=that</a> or <a href=\"http://example.com/a-?this=that\">http://example.com/a-?this=that</a>"
+
+ - description: "Autolink URL should autolink URLs with longer paths ending in -"
+ text: "Go to http://example.com/view/slug-url-?foo=bar"
+ expected: "Go to <a href=\"http://example.com/view/slug-url-?foo=bar\">http://example.com/view/slug-url-?foo=bar</a>"
+
all:
- description: "Autolink all does not break on URL with @"
text: "http://www.flickr.com/photos/29674651@N00/4382024406 if you know what's good for you."
View
@@ -218,6 +218,10 @@ tests:
text: "Go to http://example.com/a+ or http://example.com/a-"
expected: ["http://example.com/a+", "http://example.com/a-"]
+ - description: "Autolink URL should autolink URLs with longer paths ending in -"
+ text: "Go to http://example.com/view/slug-url-?foo=bar"
+ expected: ["http://example.com/view/slug-url-?foo=bar"]
+
urls_with_indices:
- description: "Extract a URL"
text: "text http://google.com"

0 comments on commit 7ff3017

Please sign in to comment.