aboutsummaryrefslogtreecommitdiffstats
path: root/Test
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2015-01-06 03:18:39 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2015-01-06 03:18:39 +0100
commitd2255f82dd695d8b96b36606fd838073fb3aa790 (patch)
tree33c9d9cd41cc50d1321321ecf18a7f85308286c4 /Test
parentfddfd2741d04230e413303be21139a0c0fba5295 (diff)
downloadUstring-d2255f82dd695d8b96b36606fd838073fb3aa790.zip
Ustring-d2255f82dd695d8b96b36606fd838073fb3aa790.tar.gz
Ustring-d2255f82dd695d8b96b36606fd838073fb3aa790.tar.bz2
Add the `isCharPrintable` method.
Diffstat (limited to 'Test')
-rw-r--r--Test/Unit/String.php19
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