From 3deb3d898c4bdf2f3ebc19f78349ee9813269751 Mon Sep 17 00:00:00 2001 From: keita Date: Tue, 12 Jul 2011 20:13:48 -0700 Subject: [PATCH] add test cases with Japanese half-width voiced sounds marks and ideographic iteration mark. --- autolink.yml | 8 ++++++++ extract.yml | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/autolink.yml b/autolink.yml index c1e428e..62b4087 100644 --- a/autolink.yml +++ b/autolink.yml @@ -235,6 +235,10 @@ tests: text: "#ハッシュタグ123" expected: "#ハッシュタグ123" + - description: "Autolink a katakana hashtag with another voiced sounds mark" + text: "#パピプペポ" + expected: "#パピプペポ" + - description: "Autolink a kanji hashtag preceded by a space and followed by a space" text: "漢字 #漢字 漢字" expected: "漢字 #漢字 漢字" @@ -344,6 +348,10 @@ tests: expected: "できましたよー!#日本語ハッシュタグ。" + - description: "Autolink a hashtag containing ideographic iteration mark" + text: "#云々" + expected: "#云々" + 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 fcd0800..454d82b 100644 --- a/extract.yml +++ b/extract.yml @@ -404,6 +404,10 @@ tests: text: "長音ハッシュタグ。#サッカー" expected: ["サッカー"] + - description: "Hashtag with half-widh voiced sounds marks" + text: "#ハッシュタグ #パピプペポ" + expected: ["ハッシュタグ", "パピプペポ"] + - description: "Hashtag with half-width # after full-width !" text: "できましたよー!#日本語ハッシュタグ。" expected: ["日本語ハッシュタグ"] @@ -412,6 +416,10 @@ tests: text: "できましたよー!#日本語ハッシュタグ。" expected: ["日本語ハッシュタグ"] + - description: "Hashtag with ideographic iteration mark" + text: "#云々" + expected: ["云々"] + hashtags_with_indices: - description: "Extract a hastag at the start" text: "#hashtag here"