Permalink
Browse files

Add autolink tests around accented characters

  • Loading branch information...
1 parent 3ba7c45 commit 5b38e8a92154639db2d60c6cb5f6200e19df31fa Matt Sanford committed Jul 19, 2010
Showing with 13 additions and 0 deletions.
  1. +13 −0 autolink.yml
View
@@ -130,6 +130,19 @@ tests:
text: "#hashtag"
expected: "<a href=\"http://twitter.com/search?q=%23hashtag\" title=\"#hashtag\" class=\"tweet-url hashtag\">#hashtag</a>"
+ - description: "DO NOT Autolink hashtag with accented character at the start"
+ text: "#éhashtag"
+ expected: "#éhashtag"
+
+ - description: "Autolink hashtag with accented character at the end"
+ text: "#hashtagé"
+ expected: "<a href=\"http://twitter.com/search?q=%23hashtagé\" title=\"#hashtagé\" class=\"tweet-url hashtag\">#hashtagé</a>"
+
+ - description: "Autolink hashtag with accented character in the middle"
+ text: "#hashétag"
+ expected: "<a href=\"http://twitter.com/search?q=%23hashétag\" title=\"#hashétag\" class=\"tweet-url hashtag\">#hashétag</a>"
+
+
urls:
- description: "Autolink trailing url"
text: "text http://example.com"

0 comments on commit 5b38e8a

Please sign in to comment.