Exemple #1
0
 public function testEqualsZt()
 {
     $this->assertTrue(CMathf::equalsZt(1.234, 1.234));
     $this->assertTrue(CMathf::equalsZt(1.2345678, 1.2345678));
     $this->assertFalse(CMathf::equalsZt(1.2345678, 1.2345679));
     $this->assertFalse(CMathf::equalsZt(1.2345678, 1.2345678 + CMathf::ZERO_TOLERANCE * 2));
     $this->assertTrue(CMathf::equalsZt(10, 10));
 }