Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
Add conformance tests for dot and dash restrictions in domain names
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Sanford committed Mar 11, 2010
1 parent e4fbd94 commit 155e2bd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions autolink.yml
Expand Up @@ -267,6 +267,17 @@ tests:
text: "I think it's proper to end sentences with a period http://tell.me/why?=because.i.want.it. Even when they contain a URL."
expected: "I think it's proper to end sentences with a period <a href=\"http://tell.me/why?=because.i.want.it\">http://tell.me/why?=because.i.want.it</a>. Even when they contain a URL."

- description: "Autolink URL should NOT autolink www...foo"
text: "Is www...foo a valid URL?"
expected: "Is www...foo a valid URL?"

- description: "Autolink URL should NOT autolink www.-foo.com"
text: "Is www.-foo.com a valid URL?"
expected: "Is www.-foo.com a valid URL?"

- description: "Autolink URL should autolink a domain with a valid dash"
text: "Is www.foo-bar.com a valid URL?"
expected: "Is <a href=\"http://www.foo-bar.com\">www.foo-bar.com</a> a valid URL?"
all:
- description: "Autolink all does not break on URL with @"
text: "http://www.flickr.com/photos/29674651@N00/4382024406"
Expand Down

0 comments on commit 155e2bd

Please sign in to comment.