Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Correct the other non-protocol autolink and extraction tests

  • Loading branch information...
commit 36e0592ca4815d80aececd26ef635a2ce7773127 1 parent a1acf2c
Matt Sanford authored
Showing with 6 additions and 10 deletions.
  1. +2 −6 autolink.yml
  2. +4 −4 extract.yml
View
8 autolink.yml
@@ -196,10 +196,6 @@ tests:
text: "いまなにしてるhttp://example.comいまなにしてる"
expected: "いまなにしてる<a href=\"http://example.com\">http://example.com</a>いまなにしてる"
- - description: "Autolink URL without protocol in Japanese text"
- text: "ABCあああDEF.com"
- expected: "ABCあああ<a href=\"http://DEF.com\">DEF.com</a>"
-
- description: "Autolink url surrounded by parentheses does not capture them"
text: "text (http://example.com)"
expected: "text (<a href=\"http://example.com\">http://example.com</a>)"
@@ -322,7 +318,7 @@ tests:
- description: "Autolink url containing ending with #value (not as url + hashtag)"
text: "http://foo.com/?#foo"
- expected: "http://foo.com/?#foo"
+ expected: "<a href=\"http://foo.com/?#foo\">http://foo.com/?#foo</a>"
- description: "DO NOT Autolink url without protocol (with www)"
text: "www.example.biz"
@@ -402,7 +398,7 @@ tests:
- description: "Autolink URL should autolink a domain with a valid dash and a protocol"
text: "Is http://www.foo-bar.com a valid URL?"
- expected: "Is <a href=\"http://www.foo-bar.com\">www.foo-bar.com</a> a valid URL?"
+ expected: "Is <a href=\"http://www.foo-bar.com\">http://www.foo-bar.com</a> a valid URL?"
- description: "Autolink URL should link search urls (with &lang=, not &lang;)"
text: "Check out http://search.twitter.com/search?q=avro&lang=en"
View
8 extract.yml
@@ -206,13 +206,13 @@ tests:
text: "text http://foo.com?#foo text"
expected: ["http://foo.com?#foo"]
- - description: "Extract URLs without protocol on (com|org|edu|gov|net) domains"
+ - description: "SHOULD NOT Extract URLs without protocol on (com|org|edu|gov|net) domains"
text: "foo.com foo.net foo.org foo.edu foo.gov"
- expected: ["http://foo.com", "http://foo.net", "http://foo.org", "http://foo.edu", "http://foo.gov"]
+ expected: []
- - description: "DO NOT extract URLs withour protocol not on (com|org|edu|gov|net) domains, unless preceded by www."
+ - description: "DO NOT extract URLs withour protocol not on (com|org|edu|gov|net) domains, even when preceded by www."
text: "foo.bar foo.co.jp www.foo.bar www.foo.co.uk wwwww.foo foo.comm foo.somecom foo.govedu"
- expected: ["http://www.foo.bar", "http://www.foo.co.uk"]
+ expected: []
urls_with_indices:
- description: "Extract a URL"
Please sign in to comment.
Something went wrong with that request. Please try again.