示例#1
0
文件: Issue.php 项目: Hywan/String
 public function case_github_26()
 {
     $this->when($result = LUT::toCode(chr(160)))->then->integer($result)->isEqualTo(0xa0);
 }
示例#2
0
文件: String.php 项目: Hywan/String
 public function case_to_code()
 {
     $this->when($result = LUT::toCode('~'))->then->integer($result)->isEqualTo(0x7e)->when($result = LUT::toCode('§'))->then->integer($result)->isEqualTo(0xa7)->when($result = LUT::toCode('ሇ'))->then->integer($result)->isEqualTo(0x1207)->when($result = LUT::toCode('💩'))->then->integer($result)->isEqualTo(0x1f4a9);
 }