Ejemplo n.º 1
0
 public function testCeil()
 {
     $this->assertTrue(CMathi::ceil(1.2) === 2);
     $this->assertTrue(CMathi::ceil(2.8) === 3);
     $this->assertTrue(CMathi::ceil(3.0) === 3);
     $this->assertTrue(CMathi::ceil(-4.2) === -4);
     $this->assertTrue(CMathi::ceil(-5.0) === -5);
     $this->assertTrue(CMathi::ceil(3) === 3);
     $this->assertTrue(CMathi::ceil(-4) === -4);
 }