aboutsummaryrefslogtreecommitdiffstats
path: root/Test
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2014-12-23 14:11:02 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2014-12-23 14:11:02 +0100
commit790dbb97e01a6a8272e5f5cea96346dbe72c284e (patch)
treee354c4183e3f239180ce7e04289f6cee51d50f13 /Test
parent436e8043af9b8f3e218afd0e89e12a89d97cce4f (diff)
downloadUstring-790dbb97e01a6a8272e5f5cea96346dbe72c284e.zip
Ustring-790dbb97e01a6a8272e5f5cea96346dbe72c284e.tar.gz
Ustring-790dbb97e01a6a8272e5f5cea96346dbe72c284e.tar.bz2
`toBinaryCode` has a better semantics.
Diffstat (limited to 'Test')
-rw-r--r--Test/Unit/String.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/Test/Unit/String.php b/Test/Unit/String.php
index 7e5705c..1d81430 100644
--- a/Test/Unit/String.php
+++ b/Test/Unit/String.php
@@ -813,25 +813,25 @@ class String extends Test\Unit\Suite {
->when($result = LUT::toBinaryCode('~'))
->then
->string($result)
- ->isEqualTo('00000000000000000000000001111110')
+ ->isEqualTo('01111110')
// U+0080 to U+07FF
->when($result = LUT::toBinaryCode('§'))
->then
->string($result)
- ->isEqualTo('00000000000000000000000010100111')
+ ->isEqualTo('1100001010100111')
// U+0800 to U+FFFF
->when($result = LUT::toBinaryCode('ሇ'))
->then
->string($result)
- ->isEqualTo('00000000000000000001001000000111')
+ ->isEqualTo('111000011000100010000111')
// U+10000 to U+10FFFF
->when($result = LUT::toBinaryCode('💩'))
->then
->string($result)
- ->isEqualTo('00000000000000011111010010101001');
+ ->isEqualTo('11110000100111111001001010101001');
}
public function case_transcode_and_isUtf8 ( ) {