From 052ae2d88a8582f6e24eeb8203d426c77d8ac47e Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 25 Feb 2011 10:25:13 -0800 Subject: [PATCH] Test cases for Unicode hashtags --- tests/HashTagDetectionTests.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/HashTagDetectionTests.php b/tests/HashTagDetectionTests.php index 483d7135e1..47031d5bc4 100644 --- a/tests/HashTagDetectionTests.php +++ b/tests/HashTagDetectionTests.php @@ -42,6 +42,21 @@ class HashTagDetectionTests extends PHPUnit_Framework_TestCase 'say {#} people'), array('say \'#hello\' people', 'say \'#\' people'), + + // Unicode legit letters + array('#éclair yummy', + '# yummy'), + array('#维基百科 zh.wikipedia!', + '# zh.wikipedia!'), + array('#Россия russia', + '# russia'), + + // Unicode punctuators -- the ideographic "," separates the tag, just as "," does + array('#维基百科,zh.wikipedia!', + '#,zh.wikipedia!'), + array('#维基百科,zh.wikipedia!', + '#,zh.wikipedia!'), + ); } } -- 2.39.5