aboutsummaryrefslogtreecommitdiffstats
path: root/Test
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2015-01-07 09:29:15 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2015-01-07 09:29:15 +0100
commitd8e9679864bbcbf8cf42b47f55389bcf05990773 (patch)
treea57a0d1baf4d8a1b5a3e4476a4eb5119c5a45752 /Test
parent2ce50fc1038ecc91ddd6e6dca74d2c4d4469246b (diff)
downloadUstring-d8e9679864bbcbf8cf42b47f55389bcf05990773.zip
Ustring-d8e9679864bbcbf8cf42b47f55389bcf05990773.tar.gz
Ustring-d8e9679864bbcbf8cf42b47f55389bcf05990773.tar.bz2
Add more test data for `getCharWidth`.
Diffstat (limited to 'Test')
-rw-r--r--Test/Unit/String.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/Test/Unit/String.php b/Test/Unit/String.php
index 03d68ac..df4f7bf 100644
--- a/Test/Unit/String.php
+++ b/Test/Unit/String.php
@@ -758,6 +758,15 @@ class String extends Test\Unit\Suite {
// Regular.
[0xa0, 1],
+ // Non-spacing characters mark.
+ [0x300, 0], // in Mn
+ [0x488, 0], // in Me
+ [0x600, 0], // in Cf
+ [0xad, 1], // in Cf, but the only exception
+ [0x1160, 0],
+ [0x11ff, 0],
+ [0x200b, 0],
+
// To test the last return statement.
[0x1100, 2],
[0x2160, 1],