示例#1
0
 public function testSqr()
 {
     $this->assertTrue(CMathi::sqr(4) === 16);
     $this->assertTrue(CMathi::sqr(-11) === 121);
     $this->assertTrue(CMathi::sqr(4.01) === 16);
     $this->assertTrue(CMathi::sqr(-11.01) === 121);
 }