X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=tests%2FHashTagDetectionTests.php;h=47031d5bc41bae3ea77292a93cbd4e1755e7020b;hb=d4bfe77f1c4705d23837addcc1398c14ae520455;hp=483d7135e1592b2e9656d037b12fa130b667f695;hpb=fc61b7162576deb11a7947a8a04293b744f9d5fc;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 {#} 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!'), + ); } }