X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=tests%2FHashTagDetectionTests.php;h=47031d5bc41bae3ea77292a93cbd4e1755e7020b;hb=22f6151a1033661c59afbfce3535bb2f00efb3d6;hp=483d7135e1592b2e9656d037b12fa130b667f695;hpb=4e9ec0d0e1aeb43b432f4692b4819beb9408ad3b;p=quix0rs-gnu-social.git
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 {#hello} people'),
array('say \'#hello\' people',
'say \'#hello\' people'),
+
+ // Unicode legit letters
+ array('#éclair yummy',
+ '#éclair 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!'),
+
);
}
}