diff options
author | Ivan Enderlin <ivan.enderlin@hoa-project.net> | 2015-01-06 03:18:39 +0100 |
---|---|---|
committer | Ivan Enderlin <ivan.enderlin@hoa-project.net> | 2015-01-06 03:18:39 +0100 |
commit | d2255f82dd695d8b96b36606fd838073fb3aa790 (patch) | |
tree | 33c9d9cd41cc50d1321321ecf18a7f85308286c4 /Test | |
parent | fddfd2741d04230e413303be21139a0c0fba5295 (diff) | |
download | Ustring-d2255f82dd695d8b96b36606fd838073fb3aa790.zip Ustring-d2255f82dd695d8b96b36606fd838073fb3aa790.tar.gz Ustring-d2255f82dd695d8b96b36606fd838073fb3aa790.tar.bz2 |
Add the `isCharPrintable` method.
Diffstat (limited to 'Test')
-rw-r--r-- | Test/Unit/String.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Test/Unit/String.php b/Test/Unit/String.php index 80a7f01..03d68ac 100644 --- a/Test/Unit/String.php +++ b/Test/Unit/String.php @@ -788,6 +788,25 @@ class String extends Test\Unit\Suite { }); } + public function case_is_char_printable ( ) { + + $this + ->when($result = LUT::isCharPrintable(LUT::fromCode(0x7f))) + ->then + ->boolean($result) + ->isFalse() + + ->when($result = LUT::isCharPrintable(LUT::fromCode(0xa0))) + ->then + ->boolean($result) + ->isTrue() + + ->when($result = LUT::isCharPrintable(LUT::fromCode(0x1100))) + ->then + ->boolean($result) + ->isTrue(); + } + public function case_from_code ( ) { $this |