From 64d98185f7d78b3b92246806f7d20a3c6086f096 Mon Sep 17 00:00:00 2001 From: keita Date: Fri, 10 Feb 2012 10:20:11 -0800 Subject: [PATCH] Add test cases for hashtags with Latin extended characters. --- autolink.yml | 4 ++++ extract.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/autolink.yml b/autolink.yml index 05cb1d5..f6f8ab9 100644 --- a/autolink.yml +++ b/autolink.yml @@ -358,6 +358,10 @@ tests: text: "Here’s a test tweet for you: #Ateş #qrşt #ştu #ş" expected: "Here’s a test tweet for you: #Ateş #qrşt #ştu " + - description: "Autolink a hashtag with Latin extended character" + text: "#mûǁae" + expected: "#mûǁae" + urls: - description: "Autolink URL with pipe character" text: "text http://example.com/pipe|character?yes|pipe|character" diff --git a/extract.yml b/extract.yml index 20b3264..a5f5680 100644 --- a/extract.yml +++ b/extract.yml @@ -701,6 +701,10 @@ tests: text: "#http://twitter.com #https://twitter.com" expected: [] + - description: "Extract hashtags with Latin extended characters" + text: "#Azərbaycanca #mûǁae #Čeština #Ċaoiṁín" + expected: ["Azərbaycanca", "mûǁae", "Čeština", "Ċaoiṁín"] + hashtags_with_indices: - description: "Extract a hastag at the start" text: "#hashtag here"