Пример #1
0
 public function testSqr()
 {
     $this->assertTrue(CMathf::equalsZt(CMathf::sqr(4.0), 16.0));
     $this->assertTrue(CMathf::equalsZt(CMathf::sqr(-5.5), 30.25));
     $this->assertTrue(CMathf::sqr(4) === 16.0);
     $this->assertTrue(CMathf::sqr(-5) === 25.0);
 }