Skip to content
Browse files

Add real examples in test cases with URL preceded by $.

  • Loading branch information...
1 parent 0bed1d7 commit 4c5e6a843453d044a3c1402adaa2499bbe4a4479 @keitaf keitaf committed Dec 6, 2011
Showing with 3 additions and 3 deletions.
  1. +2 −2 autolink.yml
  2. +1 −1 extract.yml
View
4 autolink.yml
@@ -632,8 +632,8 @@ tests:
expected: "See: <a href=\"http://t.co/abcde\">http://t.co/abcde</a>'s page"
- description: "DO NOT autolink URL if preceded by $"
- text: "$http://twitter.com $twitter.com $http://t.co/abcde $t.co/abcde $t.co"
- expected: "$http://twitter.com $twitter.com $http://t.co/abcde $t.co/abcde $t.co"
+ text: "$http://twitter.com $twitter.com $http://t.co/abcde $t.co/abcde $t.co $TVI.CA $RBS.CA"
+ expected: "$http://twitter.com $twitter.com $http://t.co/abcde $t.co/abcde $t.co $TVI.CA $RBS.CA"
all:
- description: "Autolink all does not break on URL with @"
View
2 extract.yml
@@ -439,7 +439,7 @@ tests:
expected: ["http://twitter.com", "http://example.com", "http://example.com/path", "example.com/path", "t.co/abcde"]
- description: "DO NOT extract URL if preceded by $"
- text: "$http://twitter.com $twitter.com $http://t.co/abcde $t.co/abcde $t.co"
+ text: "$http://twitter.com $twitter.com $http://t.co/abcde $t.co/abcde $t.co $TVI.CA $RBS.CA"
expected: []
urls_with_indices:

0 comments on commit 4c5e6a8

Please sign in to comment.
Something went wrong with that request. Please try again.